Skip to content

Commit

Permalink
Test the limits of acceptably horrible cronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jul 23, 2024
1 parent 6038347 commit 2f85d09
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sync/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ parameters:
value: "false"

### Usually a bad idea - not recommended
# - name: CRON_MINUTES
# description: Random number, 0-60, for scheduling cronjobs
# from: "[0-5]{1}[0-9]{1}"
# generate: expression
- name: JOB_BACKOFF_LIMIT
description: "The number of attempts to try for a successful job outcome"
value: "3"
Expand All @@ -53,8 +49,7 @@ objects:
app: ${REPO}-${ZONE}
cronjob: ${REPO}-${ZONE}
spec:
# schedule: "${CRON_MINUTES} 8 * * *" # Run daily at 8:xx AM UTC
schedule: "0 0 0 0 0" # Never runs automatically
schedule: "1 2 3 12/1000000000 *" # https://crontab.guru/#1_2_3_12/1000000000_*
startingDeadlineSeconds: 60
concurrencyPolicy: "Replace"
successfulJobsHistoryLimit: "${{JOB_HISTORY_SUCCESS}}"
Expand Down

0 comments on commit 2f85d09

Please sign in to comment.