- 🇧🇪Belgium lisotton Brussels
I have a similar case. I have many jobs configured and the most frequent ones are configured to run every 15 minutes. I have the system cron calling the drush command every 5 minutes, but still in the Status Report page I have, from time to time, jobs being reported as behind schedule. In the list of jobs, as you can see in the attached screenshot, the first job in the list had ran at 10:25 and now is 10:36 and it is already reported as behind schedule:
I think a job should be reported as behind schedule only if the last run is more than 15 minutes ago, if the job is configured to run every 15 minutes. In this case, it has passed 11 minutes and the job is already reported as behind schedule.
- Merge request !69Issue #2951974: Do not report Simple jobs as behind if they ran within the configured interval → (Open) created by lisotton
- 🇧🇪Belgium lisotton Brussels
I have worked in a MR that do not report Simple jobs as behind if the last run was within the configured interval. For example, if a job is configured to run every 15 minutes, it will be reported as behind only if it is more than 15 minutes since the last run.
This will clear the warning in the Status Report page.
- 🇵🇹Portugal crgomes
I have the same issue #6 🐛 ultimate cron cron jobs are running fine but status report page shows, some jobs are behind schedule Active as described by lisotton → . I've tested the patch from the merge request #7 🐛 ultimate cron cron jobs are running fine but status report page shows, some jobs are behind schedule Active it and it is working fine. Thanks lisotton → .
- Status changed to Needs work
about 1 hour ago 8:40pm 1 September 2025 - 🇨🇭Switzerland berdir Switzerland
This is a good start, but I it's only implemented for the Simple plugin and only holds up for short intervals.
If you have something set to run every 3 hours and it hasn't run in 5 hours then I think it's running behind.
What if we instead just add a fixed, configurable offset? Can be added to the global settings page and default to 15min or so. requirements_behind_offset or so, with label "Warn about cron jobs running behind more than the given offset" or so. Maybe a -1 to disable it.
That could be implemented directly in the requirements hook, because there are some other calls to isBehind() that should still report it as such.