Specify Time to Run?
-
Can I specify a time to run instead of using “interval”?
Thanks!
-
Not yet. Will implement such a feature. Thanks for the suggestion!
I will respond to this topic when it’s released, so you can know.
Thanks!
An observation… it seems the drifting is inconsistent? The run time from 23/Jul has been drifting from 23:00 to 01:56 and today it ran at 12:06
FYI I’ve set the interval at 1440 minutes.
Cheers.
@loyukfai Strange indeed. We are using the Action Scheduler’s interval feature, and we don’t have fine-grained control over the interval execution, as it has an enqueue and priorities mechanism built-in within (executing tasks with higher priorities first).
I see 2 potential reasons why this issue might happen for you:
1. Some other tasks were running with the higher priority and the enqueue became available only at 12:06 (if this is the case, you will find many tasks in Tools -> Scheduled Actions for that night)
2. Or maybe the site did not get any visitors during the night (in this case, you will find no or just a few tasks for that night).
I suppose that is #2 and your site simply get no / not enough visitors that night.
You can try setting up a server-side CRON job to visit your site every hour, I think that will help. If it does not help, then I can add a setting to the plugin to set the higher task priorities for the warming intervals.
Here’s how to setup a CRON job, if needed: https://chat.openai.com/share/34509d2e-1ab4-4aeb-8f6f-dae53ba5b9d3Am using an hourly cron job for trigger WP maintenance tasks so it’s probably not related to the visitor issue…
@loyukfai Maybe you could check action scheduler for that day, and then I could tell for sure. But these were only suggestions.
So I suppose if there were other tasks that ran that night, but not CW, then it’s something with priorities, and some higher prio tasks were running for the whole night. But I would like you to verify it, and if so, I can add a setting to tweak prios.-
This reply was modified 2 years, 8 months ago by
TMM Technology.
-
This reply was modified 2 years, 8 months ago by
TMM Technology.
Thanks a lot for the suggestion! Perhaps it would be easier for me to wait for this specific time to run to be implemented instead?
Cheers.
@loyukfai
It can actually face the same priorities issue. But I hope you did not experience this issue any more with 12h lag and all was smooth.It seems the start times still fluctuates due to the different total run times.
A set timer would be nice!
Cheers.
@loyukfai It fluctuates due to the nature of Action Scheduler. Set timer will not help, as we still will use WP-standard of scheduling (Action Scheduler). It’s just about enqueues and priorities.
Just curious, how much does it fluctuate for you? -
This reply was modified 2 years, 8 months ago by
The topic ‘Specify Time to Run?’ is closed to new replies.