Reliable HTTP cron and delayed-job scheduling with automatic retries and full run logs — delay.run
You check on a Kubernetes CronJob that should run every minute and find that it hasn't created a Job in hours. Somewhere in the controller logs or the CronJob's events there's a message like this:
Cannot determine if job needs to be started: too many missed start times (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew.
Enter fullscreen mode
Exit fullscreen mode
On newer clusters the same situation shows up as a warning event with the reason TooManyMissedTimes . Either way, the message is telling you exactly what to do, but not why it happened. Here's both.
What the controller is counting
Each time the CronJob controller looks at a CronJob, it works out which scheduled times have passed since the job last ran ( .status.lastScheduleTime , or the CronJob's creation time if it has never run).…