Strange cron jobs problems

Cron jobs are working, despite CP panel is unavailable at that moment. So, I have noticed a strange behevior of my cron task. My cron job is set to be executed every 10 minutes, but its looks like cron task is being runned twice at the same time, parralely. Acording on my logs for today, my cron job was executed twice:

  • At 09:11:05 and 09:11:22 (UTC);

  • At 12:30:35 and 12:31:17 (UTC);

  • At 13:21:23 and 13:30:33 (UTC);

As result some of my files was corupted, because of parralel writing of two cron jobs, also some worng records was added in database. The worst part is that it is imposible to stop cron job, because CP panel is unavailable. There is no any emergency button to disable cron jobs at hosting. So I guess it is bug of the system, because there shoud be test if cron job is already executed or not.

As you said bug of the system, cron jobs might be removed from the free plan anyhow in the future so best to use https://cron-job.org/en/

Using FTP you could possibly rename the file that is supposed to run until the CP is back.

Thank you! This service is just brilliant!

1 Like