Compare commits
No commits in common. "2a7ad6345ff7c34b80737bd7e4294d6668e3551e" and "39bca8ead99aa8805cb571b44d537c38b5230dbd" have entirely different histories.
2a7ad6345f
...
39bca8ead9
@ -21,7 +21,6 @@ class TasksHandlerMixin:
|
|||||||
response = requests.get(f'{QUEUES_URL}/api/v1/take', headers={'queue': self.queue_name}).json()
|
response = requests.get(f'{QUEUES_URL}/api/v1/take', headers={'queue': self.queue_name}).json()
|
||||||
except requests.JSONDecodeError:
|
except requests.JSONDecodeError:
|
||||||
print('Unable to decode json')
|
print('Unable to decode json')
|
||||||
time.sleep(3)
|
|
||||||
continue
|
continue
|
||||||
task = response.get('task')
|
task = response.get('task')
|
||||||
if not task:
|
if not task:
|
||||||
|
Loading…
Reference in New Issue
Block a user