-
-
Notifications
You must be signed in to change notification settings - Fork 605
Open
Description
- I've read the guidelines for Contributing to Roots Projects
- This request isn't a duplicate of an existing request
- This is not a personal support request that should be posted on the Roots Discourse community
Summary
Make sure that cron is not running already when triggering another cron.
Motivation
The other day I found a peculiar bug in one of the plugins on my website. cron option in DB (wp_options name='cron') had thousands of duplicates of one cron job scheduled. That caused cron to run for hours. When few crons overlapped that made the server run out of resources. Obviously, the solution is to clear the scheduled jobs and fix the plugin, but I think there would be quite a lot of value in making cron check if the previous cron finished running before starting another one ( or even allow certain amount of parallel runs you can adjust yourself ).
I am happy to work on that if other people see the value in it.
jordan26 and maciekpaprocki
Metadata
Metadata
Assignees
Labels
No labels