Compare commits
No commits in common. "c32bfad43185f8f7b71b6cd9a2c34afd42823195" and "0f58ed101ebe20dce6937f380109058995fe39fc" have entirely different histories.
c32bfad431
...
0f58ed101e
@ -9,7 +9,6 @@ from utils import queues
|
||||
|
||||
class Daemon(base.Daemon):
|
||||
def __init__(self):
|
||||
super().__init__(self)
|
||||
self.telegram_bots: dict[str, dict[str, telebot.TeleBot|None]] = {}
|
||||
self.threads: dict[str, dict[str, threading.Thread|None]] = {}
|
||||
|
||||
|
@ -13,7 +13,8 @@ class TasksHandlerMixin:
|
||||
def poll(self):
|
||||
while True:
|
||||
response: tasks_pb2.TakeResponse = self.stub.Take(tasks_pb2.TakeRequest(queue=self.queue_name))
|
||||
if not response.task:
|
||||
task = response.task
|
||||
if not task.id:
|
||||
time.sleep(0.2)
|
||||
continue
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user