From e28127013eac45348c2afd0e5638c51379f01077 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Wed, 24 Jul 2024 10:53:30 -0700 Subject: [PATCH] Roll back sync changes, look at job types --- sync/openshift.deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sync/openshift.deploy.yml b/sync/openshift.deploy.yml index 441d658d0..ad8f1eee0 100644 --- a/sync/openshift.deploy.yml +++ b/sync/openshift.deploy.yml @@ -27,6 +27,10 @@ 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" @@ -49,7 +53,7 @@ objects: app: ${REPO}-${ZONE} cronjob: ${REPO}-${ZONE} spec: - schedule: "1 2 3 12/1000000000 *" # https://crontab.guru/#1_2_3_12/1000000000_* + schedule: "${CRON_MINUTES} 8 * * *" # Run daily at 8:xx AM UTC startingDeadlineSeconds: 60 concurrencyPolicy: "Replace" successfulJobsHistoryLimit: "${{JOB_HISTORY_SUCCESS}}"