mirror of https://github.com/openspug/spug
fix issues
parent
018ada226e
commit
26c3879b5c
|
@ -24,6 +24,7 @@ class Worker:
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
logging.warning('Running worker')
|
logging.warning('Running worker')
|
||||||
|
self.rds.delete(EXEC_WORKER_KEY, MONITOR_WORKER_KEY, SCHEDULE_WORKER_KEY)
|
||||||
while True:
|
while True:
|
||||||
key, job = self.rds.blpop([EXEC_WORKER_KEY, SCHEDULE_WORKER_KEY, MONITOR_WORKER_KEY])
|
key, job = self.rds.blpop([EXEC_WORKER_KEY, SCHEDULE_WORKER_KEY, MONITOR_WORKER_KEY])
|
||||||
key = key.decode()
|
key = key.decode()
|
||||||
|
|
Loading…
Reference in New Issue