Compare commits
No commits in common. "f0399196b561bfab7a10155ebcc81919eedec0b6" and "7b806075c7c70bcafbc5490c52b8de9af78ad9d1" have entirely different histories.
f0399196b5
...
7b806075c7
@ -2,8 +2,6 @@ import time
|
|||||||
import tasks_pb2_grpc
|
import tasks_pb2_grpc
|
||||||
import tasks_pb2
|
import tasks_pb2
|
||||||
|
|
||||||
from google.protobuf import json_format
|
|
||||||
|
|
||||||
|
|
||||||
class QueuesException(Exception):
|
class QueuesException(Exception):
|
||||||
...
|
...
|
||||||
@ -18,7 +16,7 @@ class TasksHandlerMixin:
|
|||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
self.process(json_format.MessageToDict(task.payload))
|
self.process(task.payload)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print(f'Error processing message id={task["id"]}, payload={task["payload"]}, exc={exc}')
|
print(f'Error processing message id={task["id"]}, payload={task["payload"]}, exc={exc}')
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user