master #38

Merged
emmatveev merged 14 commits from master into prod 2024-12-08 19:57:42 +03:00
Showing only changes of commit b4dd0a4b7b - Show all commits

View File

@ -14,6 +14,7 @@ class TasksHandlerMixin:
while True: while True:
response: tasks_pb2.TakeResponse = self.stub.Take(tasks_pb2.TakeRequest(queue=self.queue_name)) response: tasks_pb2.TakeResponse = self.stub.Take(tasks_pb2.TakeRequest(queue=self.queue_name))
task: tasks_pb2.Task = response.task task: tasks_pb2.Task = response.task
print(task)
if not task: if not task:
time.sleep(0.2) time.sleep(0.2)
continue continue