Skip to content
Snippets Groups Projects
Commit 40a0bbbb authored by Julian Rother's avatar Julian Rother
Browse files

Quick fix scheduler in case the queue is empty

parent a6f89b6a
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ def run_scheduler(): ...@@ -23,6 +23,7 @@ def run_scheduler():
time.sleep(1) # UWSGI does weird things on startup time.sleep(1) # UWSGI does weird things on startup
while True: while True:
scheduler.run() scheduler.run()
time.sleep(10)
def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}): def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}):
if firstdelay == None: if firstdelay == None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment