Skip to content

Commit

Permalink
Add a global job timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen authored and chrisburr committed Oct 18, 2023
1 parent 27d8a82 commit ce28d48
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ TODO
| diracxWeb.service.port | int | `8080` | |
| diracxWeb.service.type | string | `"ClusterIP"` | |
| fullnameOverride | string | `""` | |
| global.activeDeadlineSeconds | int | `900` | |
| global.batchJobTTL | int | `600` | |
| global.imagePullPolicy | string | `"Always"` | |
| image.repository | string | `"ghcr.io/diracgrid/diracx/server"` | |
Expand Down
2 changes: 1 addition & 1 deletion diracx/templates/init-cs/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ metadata:
"helm.sh/hook": pre-install
spec:
ttlSecondsAfterFinished: {{ .Values.global.batchJobTTL }}
activeDeadlineSeconds: 300
activeDeadlineSeconds: {{ .Values.global.activeDeadlineSeconds }}
template:
metadata:
annotations:
Expand Down
2 changes: 1 addition & 1 deletion diracx/templates/init-secrets/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
"helm.sh/hook-weight": "-1"
spec:
ttlSecondsAfterFinished: {{ .Values.global.batchJobTTL }}
activeDeadlineSeconds: 300
activeDeadlineSeconds: {{ .Values.global.activeDeadlineSeconds }}
template:
metadata:
annotations:
Expand Down
2 changes: 1 addition & 1 deletion diracx/templates/init-sql/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
"helm.sh/hook": post-install,pre-upgrade
spec:
ttlSecondsAfterFinished: {{ .Values.global.batchJobTTL }}
activeDeadlineSeconds: 300
activeDeadlineSeconds: {{ .Values.global.activeDeadlineSeconds }}
template:
metadata:
annotations:
Expand Down
2 changes: 2 additions & 0 deletions diracx/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ global:
# For now we override it to Always to avoid confusion around having an
# outdated reference to the "latest" tag.
imagePullPolicy: Always
# timeout for job deadlines
activeDeadlineSeconds: 900

replicaCount: 1

Expand Down

0 comments on commit ce28d48

Please sign in to comment.