fix
All checks were successful
Deploy Dev / Build (pull_request) Successful in 6s
Deploy Dev / Push (pull_request) Successful in 8s
Deploy Dev / Deploy dev (pull_request) Successful in 12s

This commit is contained in:
emmatveev 2024-12-08 11:34:08 +03:00
parent ec2c39ed35
commit 92fe0c1999

View File

@ -2,6 +2,8 @@ import time
import tasks_pb2_grpc
import tasks_pb2
from google.protobuf import json_format
class QueuesException(Exception):
...
@ -16,7 +18,7 @@ class TasksHandlerMixin:
time.sleep(0.2)
continue
try:
self.process(task.payload)
self.process(json_format.MessageToDict(task.payload))
except Exception as exc:
print(f'Error processing message id={task["id"]}, payload={task["payload"]}, exc={exc}')
continue