master #28

Merged
emmatveev merged 4 commits from master into prod 2024-11-27 02:41:45 +03:00
Showing only changes of commit 2d051a1881 - Show all commits

View File

@ -18,7 +18,7 @@ class QueuesException(Exception):
class TasksHandlerMixin:
def poll(self):
while True:
response = requests.get(f'{QUEUES_URL}/api/v1/take', headers={'queue': self.queue_name})
response = requests.get(f'{QUEUES_URL}/api/v1/take', headers={'queue': self.queue_name}).json()
task = response.get('task')
if not task:
time.sleep(0.2)