cron job is working irregularly
- Floris
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
4 months 2 weeks ago #1
by Floris
cron job is working irregularly was created by Floris
Since the last update from NS Pro from a few days ago, the cron job has been working irregularly. I noticed we can now choose for it to be triggered every 3, 6, 9, 12, 15 and 30 minutes. I left it at 30 minutes like before. This weekend the cron job was triggered once an hour instead of every 30 minutes. At the moment I am sending a newsletter as well and now it looks like the cron job is triggered randomly. The first trigger was at 08:36, then 09:21, and the third so far was at 10:06. Any idea why this is happening? Should I create a new Cron Job Key at your website? Thanks in advance and let me know if you have any questions.Regards,Floris
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
4 months 2 weeks ago #2
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic cron job is working irregularly
Hello Floris and thank you for bringing this up.
This is the exact issue I'm looking into right now.
Starting with the update that allows the interval of minutes, your site now checks for an interval before sending all scheduled newsletters, like it did before.
Since the cron job trigger fluctuates for a variety of reasons (a website may fail, another may take longer to respond), the interval calculation returns less than 30 minutes, so the newsletter is only triggered the next time (hence, 1 hour).
I will now pass the universal cron job trigger time as a parameter, so that intervals are always calculated against the same clock.
A fix should be released before the end of the week.
Let me know if that works for you.
This is the exact issue I'm looking into right now.
Starting with the update that allows the interval of minutes, your site now checks for an interval before sending all scheduled newsletters, like it did before.
Since the cron job trigger fluctuates for a variety of reasons (a website may fail, another may take longer to respond), the interval calculation returns less than 30 minutes, so the newsletter is only triggered the next time (hence, 1 hour).
I will now pass the universal cron job trigger time as a parameter, so that intervals are always calculated against the same clock.
A fix should be released before the end of the week.
Let me know if that works for you.
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
- Christopher Mavros
-
- Offline
- Administrator
-
4 months 2 weeks ago #3
by Christopher Mavros
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Replied by Christopher Mavros on topic cron job is working irregularly
Hi again Floris,
I just sent you a fix via email.
Let me know if it works for you, too.
Thanks again!
I just sent you a fix via email.
Let me know if it works for you, too.
Thanks again!
Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Please Log in or Create an account to join the conversation.
Moderators: Christopher Mavros