Merge pull request 'fix' (#50) from master into dev

Reviewed-on: https://gitea.chocomarsh.com/self/botalka/pulls/50
This commit is contained in:
emmatveev 2025-06-15 00:17:58 +03:00
commit 77fe38acc0

View File

@ -44,7 +44,7 @@ class TasksHandlerMixin:
print(f'Failed to finish task id={task["id"]}')
try:
metric = requests.post('http://monitoring:1237/api/v1/metrics/task', json={
'timestamp': start.isoformat(),
'timestamp': start.strftime("%Y-%m-%dT%H:%M:%S") + "Z",
'service': 'botalka',
'environment': stage,
'queue': self.queue_name,