Skip to content

Commit

Permalink
Use a configurable parameter for activeDeadlineSeconds (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak authored Jan 2, 2024
1 parent 78a7ec0 commit 3578fdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/clowdapp-db-cleaner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ objects:
restartPolicy: Never
concurrencyPolicy: Forbid
# In PROD 1 cronjob takes around 45 min. Deadline set to 60 mins.
activeDeadlineSeconds: 3600
activeDeadlineSeconds: ${{JOB_DEADLINE}}
suspend: ${{SUSPEND_JOB}}
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
Expand Down Expand Up @@ -111,6 +111,9 @@ parameters:
- description: Should the cron job be disabled?
name: SUSPEND_JOB
value: 'false'
- description: Number of seconds before job is terminated
name: JOB_DEADLINE
value: "3600"
- description: When the cronjob runs
name: JOB_SCHEDULE
value: 0 0 * * *
Expand Down

0 comments on commit 3578fdb

Please sign in to comment.