Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cron job schedule time changes automatically

Tags:

cron

cpanel

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.

like image 248
Sandeep Vishwakarma Avatar asked Dec 26 '13 13:12

Sandeep Vishwakarma


People also ask

How does cron work with Daylight Savings time?

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.

How do I schedule a dynamic cron job?

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 is * * * * * In cron job?

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.

Do Cronjobs run automatically?

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.


1 Answers

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.

like image 128
pmod Avatar answered Oct 21 '22 15:10

pmod