feat: cron controlled cli command to sync xml data with remote

This commit is contained in:
Björn Fromme
2026-03-16 12:00:56 +01:00
parent ef191c55be
commit 2fe9185a6f
11 changed files with 352 additions and 9 deletions
+7 -7
View File
@@ -4,13 +4,13 @@ flysystem:
adapter: 'local'
options:
directory: '%env(resolve:XML_EXPORT_PATH)%'
# xml_export.storage:
# adapter: 'sftp'
# options:
# host: '%env(SFTP_XML_EXPORT_HOST)%'
# port: '%env(int:SFTP_XML_EXPORT_PORT)%'
# username: '%env(SFTP_XML_EXPORT_USER)%'
# password: '%env(SFTP_XML_EXPORT_PASSWORD)%'
xml_source.storage:
adapter: 'sftp'
options:
host: '%env(SFTP_XML_EXPORT_HOST)%'
port: '%env(int:SFTP_XML_EXPORT_PORT)%'
username: '%env(SFTP_XML_EXPORT_USER)%'
password: '%env(SFTP_XML_EXPORT_PASSWORD)%'
xml_dump.storage:
adapter: 'local'
options:
+2
View File
@@ -0,0 +1,2 @@
framework:
lock: '%env(LOCK_DSN)%'
+8
View File
@@ -12,3 +12,11 @@ zenstruck_schedule:
- task: app:cleanup:xml-dumps
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'
- task: app:bpn:xml-sync
frequency: '0 20-23,0-7 * * *'
description: 'Sync BusPro XML data'
+1
View File
@@ -34,6 +34,7 @@ services:
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
bind:
$xmlExport: '@xml_export.storage'
$xmlSource: '@xml_source.storage'
$xmlDump: '@xml_dump.storage'
$jsonExport: '@json_export.storage'
$travelInfoBaseUrl: '%env(APP_TRAVEL_INFO_BASE_URL)%'