fix issues

pull/342/head
vapao 2021-07-05 19:28:24 +08:00
parent 018ada226e
commit 26c3879b5c
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class Worker:
def run(self):
logging.warning('Running worker')
self.rds.delete(EXEC_WORKER_KEY, MONITOR_WORKER_KEY, SCHEDULE_WORKER_KEY)
while True:
key, job = self.rds.blpop([EXEC_WORKER_KEY, SCHEDULE_WORKER_KEY, MONITOR_WORKER_KEY])
key = key.decode()