Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rolandka's avatar

Scheduler - run task after a set time

Hi everyone,

I'm having an issue with the Scheduler and more precisely with my server I'm hosting at. The issue is that even though I added a cron job to execute the scheduler every minute the execution is running a bit late and slightly random, The hosting company said that is due to the load of the server but they cannot do anything.

I have a couple of tasks that should be run every day at various times. (02:00, 13:45, 18:15) Sometimes the scheduler misses these exact times and the task doesnt get executed. I was wondering how do you guys overcome on such issue? Ideally i'm looking for some kind of "DailyAfter" function instead of the "DailyAt", although, I know that there is no such thing.

Please see the part of my log file:

Jul 20 22:49:58 cron2-lxc crond[130542]: ****
Jul 20 22:51:54 cron2-lxc crond[137844]: ****
Jul 20 22:52:09 cron2-lxc crond[141976]: ****
Jul 20 22:54:07 cron2-lxc crond[4354]: ****
Jul 20 22:54:21 cron2-lxc crond[9735]: ****
Jul 20 22:54:26 cron2-lxc crond[11606]: ****
Jul 20 22:56:29 cron2-lxc crond[22193]: ****
Jul 20 22:56:33 cron2-lxc crond[24182]: ****

Thanks for your help

0 likes
0 replies

Please or to participate in this conversation.