Roughly working on config svc

This commit is contained in:
Cyber MacGeddon 2025-04-14 19:23:43 +01:00
parent 1d150cdc21
commit d924dad25f
4 changed files with 31 additions and 28 deletions

View file

@ -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

View file

@ -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):