metric #82

Merged
emmatveev merged 17 commits from metric into master 2025-07-17 23:32:44 +03:00
Showing only changes of commit 0cab3e52cb - Show all commits

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)