diff --git a/config/packages/zenstruck_schedule.yaml b/config/packages/zenstruck_schedule.yaml index e95aa80..b75efff 100644 --- a/config/packages/zenstruck_schedule.yaml +++ b/config/packages/zenstruck_schedule.yaml @@ -16,14 +16,6 @@ zenstruck_schedule: frequency: "0 1 * * *" description: "Removes outdated XML dumps of requests/responses to BPN API for debugging" - - task: app:bpn:xml-sync - frequency: "*/15 8-19 * * *" - description: "Sync BusPro XML data every 15 min. during peak hours" - - - task: app:bpn:xml-sync - frequency: "0 20-23,0-7 * * *" - description: "Sync BusPro XML data hourly outside peak hours" - - task: app:cleanup:log-entries frequency: "15 1 * * *" description: "Removes outdated log entries with a retention period of 6 months" @@ -31,3 +23,22 @@ zenstruck_schedule: - task: app:draft:cleanup frequency: "30 1 * * *" description: "Removes expired drafts" + +when@staging: + zenstruck_schedule: + mailer: + subject_prefix: "[MyE&P STAGING]" + +when@prod: + zenstruck_schedule: + mailer: + subject_prefix: "[MyE&P PROD]" + + tasks: + - task: app:bpn:xml-sync + frequency: "*/15 8-19 * * *" + description: "Sync BusPro XML data every 15 min. during peak hours" + + - task: app:bpn:xml-sync + frequency: "0 20-23,0-7 * * *" + description: "Sync BusPro XML data hourly outside peak hours"