From d9c7faec11af4e090bfa6bebb765c9b9af2029af Mon Sep 17 00:00:00 2001 From: GCheema <50441412+GurnankCheema@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:09:12 +0000 Subject: [PATCH] MAP-1937 give jobs longer time to complete. (#744) * 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 --- helm_deploy/use-of-force/templates/job.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helm_deploy/use-of-force/templates/job.yaml b/helm_deploy/use-of-force/templates/job.yaml index 1c010096..5b1a8bc9 100644 --- a/helm_deploy/use-of-force/templates/job.yaml +++ b/helm_deploy/use-of-force/templates/job.yaml @@ -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 }}