Skip to content

Commit

Permalink
MAP-1651 fixing cron job (#721)
Browse files Browse the repository at this point in the history
* MAP-1651 fixing cron job

* MAP-1651 fixing cron job

* MAP-1651 clean up
  • Loading branch information
michalnawrockidj authored Oct 2, 2024
1 parent a7b66d9 commit d2bd74a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions helm_deploy/use-of-force/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ spec:
spec:
template:
spec:
restartPolicy: Never
activeDeadlineSeconds: 240
containers:
- name: use-of-force
image: {{ with index .Values "generic-service" }}{{ .image.repository }}:{{ .image.tag }}{{ end }}
args:
- node
- job/sendReminders
{{ include "deployment.envs" . | nindent 12 }}
restartPolicy: Never
activeDeadlineSeconds: 240
{{- include "deployment.envs" (index .Values "generic-service") | nindent 12 }}
3 changes: 0 additions & 3 deletions helm_deploy/use-of-force/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ generic-service:
- moj_cloud_platform
- digital_staff_and_mojo

jobs:
cronspec: "0 8,12,15 * * *"
# jobs will run at 9am, 1pm and 4pm
generic-prometheus-alerts:
targetApplication: use-of-force
alertSeverity: digital-prison-service-dev
Expand Down

0 comments on commit d2bd74a

Please sign in to comment.