86 lines
2.9 KiB
YAML
86 lines
2.9 KiB
YAML
zenstruck_schedule:
|
|
timezone: Europe/Berlin
|
|
|
|
mailer:
|
|
service: mailer
|
|
default_to: [email protected]
|
|
default_from: [email protected]
|
|
subject_prefix: "[MyE&P]"
|
|
|
|
schedule_extensions:
|
|
email_on_failure:
|
|
enabled: true
|
|
to: [email protected]
|
|
|
|
tasks:
|
|
- task: app:cleanup:xml-dumps
|
|
frequency: "0 1 * * *"
|
|
description: "Removes outdated XML dumps of requests/responses to BPN API for debugging"
|
|
|
|
- task: app:cleanup:log-entries
|
|
frequency: "15 1 * * *"
|
|
description: "Removes outdated log entries with a retention period of 6 months"
|
|
|
|
- task: app:draft:cleanup
|
|
frequency: "30 1 * * *"
|
|
description: "Removes expired drafts"
|
|
|
|
- task: app:cleanup:newsletter-opt-in-requests
|
|
frequency: "45 1 * * *"
|
|
description: "Removes expired pending newsletter double opt-in requests"
|
|
|
|
- task: app:cleanup:travel-mailing-lists
|
|
frequency: "50 1 * * *"
|
|
description: "Deletes Mailjet travel mailing lists and their orphaned contacts 30 days after the travel started"
|
|
|
|
- task: league:oauth2-server:clear-expired-tokens
|
|
frequency: "0 * * * *"
|
|
description: "Removes expired oauth2 tokens hourly"
|
|
|
|
- task: app:bpn:refresh-travel-snapshot --refresh-after 60
|
|
frequency: "10 8-19 * * *"
|
|
description: "Syncs travel data snapshots with BusPro XML data hourly during peak hours"
|
|
|
|
- task: app:bpn:refresh-travel-snapshot --refresh-after 180
|
|
frequency: "10 20-23,0-7 * * *"
|
|
description: "Syncs travel data snapshots with BusPro XML data every 3 hours outside peak hours"
|
|
|
|
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: "Syncs BusPro XML data every 15 min. during peak hours"
|
|
|
|
- task: app:bpn:xml-sync
|
|
frequency: "0 20-23,0-7 * * *"
|
|
description: "Syncs BusPro XML data hourly outside peak hours"
|
|
|
|
- task: app:bpn:sync-contingents
|
|
frequency: "5-59/15 8-19 * * *"
|
|
description: "Syncs the full contingent horizon every 15 min. during peak hours"
|
|
|
|
- task: app:bpn:sync-contingents
|
|
frequency: "5 20-23,0-7 * * *"
|
|
description: "Syncs the full contingent horizon hourly outside peak hours"
|
|
|
|
- task: app:content:sync
|
|
frequency: "0 * * * *"
|
|
description: "Mirrors changes in the TYPO3 content feed for the chatbot MCP server"
|
|
|
|
- task: app:content:sync --refresh
|
|
frequency: "5 1 * * 0"
|
|
description: "Refetches TYPO3 content stored more than 7 days ago, within the night window"
|
|
|
|
- task: app:content:check-freshness --max-age 150
|
|
frequency: "10 * * * *"
|
|
description: "Fails when the TYPO3 content mirror has missed more than one hourly sync"
|