feat: integrate with zenstruck schedule bundle

This commit is contained in:
Björn Fromme
2025-09-02 09:05:01 +02:00
parent 7941075404
commit fd763aa429
5 changed files with 185 additions and 2 deletions
+1
View File
@@ -21,4 +21,5 @@ return [
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
Flagception\Bundle\FlagceptionBundle\FlagceptionBundle::class => ['all' => true],
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
Zenstruck\ScheduleBundle\ZenstruckScheduleBundle::class => ['all' => true],
];
+34
View File
@@ -0,0 +1,34 @@
zenstruck_schedule:
timezone: Europe/Berlin
mailer:
service: mailer
schedule_extensions:
email_on_failure:
to: [email protected]
tasks:
- task: app:bpn-import
frequency: '30 1 * * *'
description: "Imports dates, products and hotels from BusProNet"
- task: app:cron
frequency: '35 1 * * *'
description: "Executes several tasks triggered on a daily basis"
- task: app:teamer-status
frequency: '40 1 * * *'
description: "Updates status of teamers depending on their disposition"
- task: oneup:uploader:clear-orphans
frequency: '30 * * * *'
description: "Removes orphaned uploads"
- task: messenger:consume async -t 60
frequency: '*/5 * * * *'
description: "Starts messenger queue"
- task: 'bash:%kernel.project_dir%/../bin/bpn-download-xml.sh'
frequency: '0 */4 * * *'
description: "Downloads XML data"