CronManager
CronManager copied to clipboard
Multiple processes
I have multiple cron jobs. Some run every 15 minutes, others run once a day. Some of those once a day cron jobs takes more than 15 minutes to run. So what sometimes happens is that it will run that job twice because the "next run" doesn't update until after the cron job runs. What I think we need is the "next run" to update first or some sort of block placed on that job if it is already running.
Each cronjob needs a started column with a boolean value.
You can use flock
on linux systems to block simultaneous execution of cron.php
Works well for my projects.
Nice idea, but what happens, when the cron job crashes or runs in a time limit? Then we could use a register_shutdown_function to clear those locks that are not removed automatically.
I assume, it is partially resolved via https://github.com/Jako/CronManager/pull/46
This is added in 1.4.0. Please check the 1.4.0-rc1 in https://github.com/Jako/CronManager/tree/master/_packages