feat: improved contingents api performance with db backed snapshots

This commit is contained in:
Björn Fromme
2026-08-20 11:46:03 +02:00
parent d5f9f4ef10
commit 351fbab498
20 changed files with 1521 additions and 109 deletions
+12
View File
@@ -58,3 +58,15 @@ when@prod:
- 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 --horizon-months=3
frequency: "*/15 8-19 * * *"
description: "Syncs near-term contingent snapshots every 15 min. during peak hours"
- task: app:bpn:sync-contingents --horizon-months=3
frequency: "5 20-23,0-7 * * *"
description: "Syncs near-term contingent snapshots hourly outside peak hours"
- task: app:bpn:sync-contingents --horizon-months=24
frequency: "40 2,13 * * *"
description: "Syncs the full contingent horizon twice daily"