Menu

How to fix 'too many missed start times' in Kubernetes CronJobs (and why your job silently stopped running)
📰

How to fix 'too many missed start times' in Kubernetes CronJobs (and why your job silently stopped running)

DEV Community: kubernetes·delay.run·12 days ago
#fEaz4QzS
#devtokubernetes#devto#dev#controller#cronjob
Long article (1124 words) — no AI summary yet.
Reading 0:00
15s threshold

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).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.