Compare commits

..

No commits in common. "f0399196b561bfab7a10155ebcc81919eedec0b6" and "7b806075c7c70bcafbc5490c52b8de9af78ad9d1" have entirely different histories.

View File

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