From 8f2baca339e51cfb979dcb86c3506b1b6590d62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Mon, 23 Mar 2026 19:38:12 +0100 Subject: [PATCH] chore: update scheduler config to delete expired oauth2 tokens --- config/packages/zenstruck_schedule.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/packages/zenstruck_schedule.yaml b/config/packages/zenstruck_schedule.yaml index b3c7156..02683a9 100644 --- a/config/packages/zenstruck_schedule.yaml +++ b/config/packages/zenstruck_schedule.yaml @@ -28,13 +28,17 @@ zenstruck_schedule: frequency: "45 1 * * *" description: "Removes expired pending newsletter double opt-in requests" + - 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: "0 8-19 * * *" - description: "Sync travel data snapshots with BusPro XML data hourly during peak hours" + description: "Syncs travel data snapshots with BusPro XML data hourly during peak hours" - task: app:bpn:refresh-travel-snapshot --refresh-after 180 frequency: "0 20-23,0-7 * * *" - description: "Sync travel data snapshots with BusPro XML data every 3 hours outside peak hours" + description: "Syncs travel data snapshots with BusPro XML data every 3 hours outside peak hours" when@staging: zenstruck_schedule: @@ -49,8 +53,8 @@ when@prod: tasks: - task: app:bpn:xml-sync frequency: "*/15 8-19 * * *" - description: "Sync BusPro XML data every 15 min. during peak hours" + description: "Syncs 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" + description: "Syncs BusPro XML data hourly outside peak hours"