fix
This commit is contained in:
parent
699eafd0df
commit
f036f521d8
@ -15,8 +15,7 @@ class TasksHandlerMixin:
|
||||
response: tasks_pb2.TakeResponse = self.stub.Take(tasks_pb2.TakeRequest(queue=self.queue_name))
|
||||
task = response.task
|
||||
if not task:
|
||||
if response.retry_after:
|
||||
time.sleep(response.retry_after)
|
||||
time.sleep(0.2)
|
||||
continue
|
||||
try:
|
||||
payload = json_format.MessageToDict(task.payload)
|
||||
|
Loading…
Reference in New Issue
Block a user