I have a cron job */2 * * * *
in the cpanel , after several hours this changes automatically to */17 * * * *
, or */19 * * * *
or */15 * * * *
. I noticed this change many days. I was waiting for the task to complete in 2 minutes, several tasks have been completed, but after several hours i saw it isn't working, so I checked the cron jobs in cpanel and I saw the */2
was changed to */19 * * * *
.
It's not a good for every one because its not possible for check cron jobs every day.
In spring, clocks spring forward from 12:59 a.m. to 2:00 a.m.; in fall, clocks fall back from 1:59 a.m. to 1:00 a.m. Example: if you have a Unix cron job at 1:30 am on today 25 October 2020, your jobs run twice.
1) Set a cronjob to run every minute and use a temp file which you touch to tell the last time that it ran one of the scheduled tasks Each time that it runs it checks if there was a task to run in between the last timestamp of your temp file and the current time, and if there is it runs the task.
What does * mean in Cron? The asterisk * is used as a wildcard in Cron. * sets the execution of a task to any minute, hour, day, weekday, or month.
The cron reads the crontab (cron tables) for running predefined scripts. By using a specific syntax, you can configure a cron job to schedule scripts or other commands to run automatically.
This looks like a cron job rescheduling initiated by hosting provider to evenly distribute server loads throughput (I am thinking of hosting service because you mentioned cpanel). You should contact your hosting support to discuss it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With