Commit 2c53dba1 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Don't delay by negative numbers (fixes ACOUSTID-SCRIPTS-H)

parent bd654abe
Pipeline #20421 passed with stages
in 2 minutes and 52 seconds
......@@ -38,4 +38,6 @@ def run_cron(script):
schedule = create_schedule(script)
while True:
schedule.run_pending()
time.sleep(schedule.idle_seconds)
delay = schedule.idle_seconds
if delay > 0:
time.sleep(delay)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment