Skip to content

Commit

Permalink
MAP-1937 give jobs longer time to complete. (#744)
Browse files Browse the repository at this point in the history
* MAP-1937 give jobs longer time to complete. Set TTL for clean up

run jobs every 10 mins rather than 5

* MAP-1937 set cron to run every 15 mins
  • Loading branch information
GurnankCheema authored Dec 16, 2024
1 parent b5a2cac commit d9c7fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions helm_deploy/use-of-force/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ kind: CronJob
metadata:
name: send-reminders
spec:
schedule: "*/5 * * * *"
schedule: "*/15 * * * *"
concurrencyPolicy: Replace
failedJobsHistoryLimit: 5
startingDeadlineSeconds: 300
successfulJobsHistoryLimit: 5
jobTemplate:
ttlSecondsAfterFinished: 100
spec:
template:
spec:
restartPolicy: Never
activeDeadlineSeconds: 298
activeDeadlineSeconds: 600
containers:
- name: use-of-force
image: {{ with index .Values "generic-service" }}{{ .image.repository }}:{{ .image.tag }}{{ end }}
Expand Down

0 comments on commit d9c7fae

Please sign in to comment.