more frequent jobs
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 6s

This commit is contained in:
Matthew Frost 2024-02-09 12:48:14 +01:00
parent 8dfc2e7c33
commit 05f45f84f1

View file

@ -9,7 +9,7 @@ def generate_batch_jobs():
for powerbar in powerbars:
if powerbars[powerbar]['method'] == 'batch_telnet':
if powerbars[powerbar]['type'] == 'baytech':
scheduler.add_job(f"baytech-batch-update-job-{powerbar}", baytech_batch_update, args=[powerbar], trigger='interval', seconds=3, max_instances=1)
scheduler.add_job(f"baytech-batch-update-job-{powerbar}", baytech_batch_update, args=[powerbar], trigger='interval', seconds=1, max_instances=1)
def baytech_batch_update(powerbar):
print(f"Running Sync Job: {powerbar}")