Merge pull request 'fix' (#71) from metric into dev

Reviewed-on: https://gitea.chocomarsh.com/self/botalka/pulls/71
This commit is contained in:
emmatveev 2025-06-15 14:46:47 +03:00
commit 23d6dedb01

View File

@ -66,6 +66,7 @@ class TasksHandlerMixin:
resp = requests.post(f'{QUEUES_URL}/api/v1/finish', json={'id': task['id']})
if resp.status_code != 202:
raise QueuesException
print(f'finish task with id {task["id"]}')
except:
print(f'Failed to finish task id={task["id"]}')
self.executor.submit(self._send_metric, start, end, success)