From a1709fe8551872455bbd3c0d6842bef46579e3d9 Mon Sep 17 00:00:00 2001 From: John Watson Date: Fri, 27 Dec 2024 19:21:12 +0000 Subject: [PATCH] fixup: only test when not refreshing, otherwise it will cause grief --- .github/workflows/prod-service-restart-cron.yml | 4 ++-- .github/workflows/prod-test-cron.yml | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prod-service-restart-cron.yml b/.github/workflows/prod-service-restart-cron.yml index 8cd9247cb4..057c3f259f 100644 --- a/.github/workflows/prod-service-restart-cron.yml +++ b/.github/workflows/prod-service-restart-cron.yml @@ -5,11 +5,11 @@ on: - cron: "0 20 * * 1-5" # Deploys every weekday at 8pm UTC concurrency: - group: deploy-production + group: restart-production cancel-in-progress: false jobs: - deploy-production: + restart-production: uses: ./.github/workflows/deploy-service-restart.yml with: environment: production diff --git a/.github/workflows/prod-test-cron.yml b/.github/workflows/prod-test-cron.yml index 83816a02f7..992ca7f952 100644 --- a/.github/workflows/prod-test-cron.yml +++ b/.github/workflows/prod-test-cron.yml @@ -2,10 +2,14 @@ name: Production Crons on: schedule: - - cron: "*/15 * * * *" # Runs every 15 minutes + # Weekdays: Every 15 minutes except 7:45 PM and 8:00 PM UTC + - cron: "0-44/15 0-19 * * 1-5" # Every 15 minutes from 12:00 AM to 7:44 PM UTC (Monday to Friday) + - cron: "15-59/15 20-23 * * 1-5" # Every 15 minutes from 8:15 PM to 11:59 PM UTC (Monday to Friday) + # Weekends: Every 15 minutes including 8:00 PM UTC + - cron: "*/15 * * * 6,0" # Every 15 minutes on Saturday (6) and Sunday (0) -# We will wait until these tests finish before starting a deploy -# We will also wait for a deploy to finish before starting to run tests +# Prod deployment cron is currently disabled, but this should `not` cancel the synthetic +# e2e runner cron concurrency: group: deploy-production cancel-in-progress: false