Merge pull request 'fix' (#71) from metric into dev
Reviewed-on: https://gitea.chocomarsh.com/self/botalka/pulls/71
This commit is contained in:
commit
23d6dedb01
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user