exec core_api_sync one time on init

This commit is contained in:
deflax 2024-01-07 03:27:14 +02:00
parent 795682484c
commit d1841f377a

View file

@ -149,6 +149,7 @@ try:
except Exception as err: except Exception as err:
logger_api.error('client login error') logger_api.error('client login error')
logger_api.error(err) logger_api.error(err)
core_api_sync()
# Schedule datarhei core api sync # Schedule datarhei core api sync
scheduler.add_job(func=core_api_sync, trigger="interval", seconds=CORE_SYNC_PERIOD, id="core_api_sync") scheduler.add_job(func=core_api_sync, trigger="interval", seconds=CORE_SYNC_PERIOD, id="core_api_sync")