Merge pull request 'fix' (#46) from master into prod

Reviewed-on: https://gitea.sprinthub.ru/self/botalka/pulls/46
This commit was merged in pull request #46.
This commit is contained in:
2024-12-28 14:23:39 +03:00

View File

@@ -21,6 +21,7 @@ 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: