templates/compose: add startingDeadlineSeconds to maintenance job
The job won't run if it doesn't get scheduled within 30 minutes. This prevents the job running multiple times in a row if it didn't get scheduled, for instance due to resource limits.
This commit is contained in:
parent
e0b2455acf
commit
5bb9d414a2
1 changed files with 2 additions and 0 deletions
|
|
@ -307,6 +307,8 @@ objects:
|
|||
# run maintenance job at midnight
|
||||
schedule: 0 0 * * *
|
||||
concurrencyPolicy: Forbid
|
||||
# don't run if the job doesn't get scheduled within 30 minutes
|
||||
startingDeadlineSeconds: 1800
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue