feat: cron controlled cli command to sync xml data with remote
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
framework:
|
||||
lock: '%env(LOCK_DSN)%'
|
||||
@@ -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'
|
||||
|
||||
@@ -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)%'
|
||||
|
||||
Reference in New Issue
Block a user