mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 17:21:02 +02:00
Roughly working on config svc
This commit is contained in:
parent
1d150cdc21
commit
d924dad25f
4 changed files with 31 additions and 28 deletions
|
|
@ -3,4 +3,6 @@ from . pubsub import PulsarClient
|
|||
from . async_processor import AsyncProcessor
|
||||
from . consumer import Consumer
|
||||
from . producer import Producer
|
||||
from . publisher import Publisher
|
||||
from . subscriber import Subscriber
|
||||
|
||||
|
|
|
|||
|
|
@ -162,17 +162,20 @@ class AsyncProcessor:
|
|||
print("Pulsar Interrupted.")
|
||||
return
|
||||
|
||||
except ExceptionGroup as e:
|
||||
|
||||
print("Exception group:")
|
||||
|
||||
for se in e.exceptions:
|
||||
print(" Type:", type(se))
|
||||
print(f" Exception: {se}")
|
||||
|
||||
except Exception as e:
|
||||
|
||||
print(type(e))
|
||||
|
||||
# print(e.message)
|
||||
# print(e.exceptions)
|
||||
|
||||
print("Type:", type(e))
|
||||
print("Exception:", e, flush=True)
|
||||
print("Will retry...", flush=True)
|
||||
|
||||
time.sleep(4)
|
||||
print("Will retry...", flush=True)
|
||||
time.sleep(4)
|
||||
|
||||
@staticmethod
|
||||
def add_args(parser):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue