Compare commits

..

No commits in common. "0f58ed101ebe20dce6937f380109058995fe39fc" and "aebaa7e54600284f05de094cd9b998dad67c7dbc" have entirely different histories.

View File

@ -13,8 +13,9 @@ class TasksHandlerMixin:
def poll(self):
while True:
response: tasks_pb2.TakeResponse = self.stub.Take(tasks_pb2.TakeRequest(queue=self.queue_name))
task = response.task
if not task.id:
task: tasks_pb2.Task = response.task
print(task)
if not task:
time.sleep(0.2)
continue
try: