Skip to content

Commit f539da6

Browse files
authored
Merge pull request #25425 from salva-gglez/caution_startingDeadlineSeconds
Add a caution message on CronJob Controller workload if using startingDeadlineSeconds
2 parents 64b63c0 + 9cc4fde commit f539da6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/en/docs/concepts/workloads/controllers/cron-jobs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ If `startingDeadlineSeconds` is set to a large value or left unset (the default)
9090
and if `concurrencyPolicy` is set to `Allow`, the jobs will always run
9191
at least once.
9292

93+
{{< caution >}}
94+
If `startingDeadlineSeconds` is set to a value less than 10 seconds, the CronJob may not be scheduled. This is because the CronJob controller checks things every 10 seconds.
95+
{{< /caution >}}
96+
97+
9398
For every CronJob, the CronJob {{< glossary_tooltip term_id="controller" >}} checks how many schedules it missed in the duration from its last scheduled time until now. If there are more than 100 missed schedules, then it does not start the job and logs the error
9499

95100
````
@@ -128,4 +133,3 @@ documents the format of CronJob `schedule` fields.
128133
For instructions on creating and working with cron jobs, and for an example of CronJob
129134
manifest, see [Running automated tasks with cron jobs](/docs/tasks/job/automated-tasks-with-cron-jobs).
130135

131-

0 commit comments

Comments
 (0)