Add a deadline for cronjob and make it run every 20th minute
Signed-off-by: Pedro Moura <pmoura@redhat.com>
This commit is contained in:
parent
1879102909
commit
a5b2891bde
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ metadata:
|
|||
name: build-planet
|
||||
namespace: planet
|
||||
spec:
|
||||
schedule: '*/5 * * * *'
|
||||
schedule: '*/20 * * * *'
|
||||
concurrencyPolicy: Forbid
|
||||
suspend: false
|
||||
successfulJobsHistoryLimit: 3
|
||||
|
@ -13,6 +13,7 @@ spec:
|
|||
metadata:
|
||||
name: build-planet
|
||||
spec:
|
||||
activeDeadlineSeconds: 900 # 15min
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue