Skip to Content Skip to Menu

Duplicate private messages and emails

  • systems
  • systems
  • OFFLINE
  • Posts: 25
  • Thanks: 6
  • Karma: 0
4 years 6 months ago #318543 by systems
Duplicate private messages and emails was created by systems
We have email and PM auto actions that are triggered by cron jobs to run on all users. These have been in place now for many months but after recent CB update (which now included the auto action batch limit feature) the PM's and emails are being sent out twice each time the cron job runs. From looking at the PMs in Plugin Management, the PM is sent to each user once, then after that, it is sent to each user again. The same looks to be happening with the emails. I have noticed that this does not happen when I set a batch limit. I would rather not set a limit if possible.
Auto actions build is 8.0.0+build.2020.04.17.17.38.41.bcf774668
CB version is 2.4.5, cant find the build number

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48550
  • Thanks: 8290
  • Karma: 1445
4 years 6 months ago #318557 by krileon
Replied by krileon on topic Duplicate private messages and emails
Core CB has not impact on CB Auto Actions and its Internal Users behavior. What version of CB Auto Actions did you update from? The batching functionality wasn't added recently and this behavior was not changed recently. Are you sure you're not just running the URL twice from CRON? That would explain why setting a batch limit fixes your issue since it expects the URL to be ran multiple times.

Have also moved your topic to the Professional support forums as you're a professional subscriber and have access to priority support.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • systems
  • systems
  • OFFLINE
  • Posts: 25
  • Thanks: 6
  • Karma: 0
4 years 6 months ago - 4 years 6 months ago #318568 by systems
Replied by systems on topic Duplicate private messages and emails
Thanks for your quick reply.
I added a "-t 1" to the CRON jobs and it has seemed to fix the issue. I did recently change my CRON's so I guess accidentally omitted this option.
Having said that, I am getting a 504 Gateway Timeout error on the CRON job when not using the batch feature only. I assume this would be a server issue but if you know where to point me to fix it, that would be great.
Last edit: 4 years 6 months ago by systems.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48550
  • Thanks: 8290
  • Karma: 1445
4 years 6 months ago #318573 by krileon
Replied by krileon on topic Duplicate private messages and emails
You're getting a timeout because you're trying to process your entire user base in a single PHP action. This really only works if you've a low amount of users. The batch feature is designed specifically to help with this and am unsure why you're against using it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • systems
  • systems
  • OFFLINE
  • Posts: 25
  • Thanks: 6
  • Karma: 0
4 years 6 months ago #318596 by systems
Replied by systems on topic Duplicate private messages and emails
Thanks again for your help.
I thought that might be the case.
I have multiple CRON jobs, each with a different "&do=something" in the url. Different auto actions are conditioned for the different URL's.
For clarification in regards to using the batch feature, if I have say, 800 users and I set the batch to 300, do I need to run each CRON 3 times so that it runs across all users?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48550
  • Thanks: 8290
  • Karma: 1445
4 years 6 months ago #318612 by krileon
Replied by krileon on topic Duplicate private messages and emails

For clarification in regards to using the batch feature, if I have say, 800 users and I set the batch to 300, do I need to run each CRON 3 times so that it runs across all users?

Yes, but in a future release you won't need to as a redirect will be put in place and as long as the CRON task uses wget or CURL with follow redirects on you'll only need to run it once.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum