mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Fix agent config handler registration, remove debug prints, disable RabbitMQ heartbeats (#764)
- Fix agent react and orchestrator services appending bare methods to config_handlers instead of using register_config_handler() — caused 'method object is not subscriptable' on config notify - Add exc_info to config fetch retry logging for proper tracebacks - Remove debug print statements from collection management dispatcher and translator - Disable RabbitMQ heartbeats (heartbeat=0) to prevent broker closing idle producer connections that can't process heartbeat frames from BlockingConnection
This commit is contained in:
parent
f0c9039b76
commit
2f8d6a3ffb
6 changed files with 9 additions and 8 deletions
|
|
@ -172,7 +172,8 @@ class AsyncProcessor:
|
|||
|
||||
except Exception as e:
|
||||
logger.warning(
|
||||
f"Config fetch failed: {e}, retrying in 2s..."
|
||||
f"Config fetch failed: {e}, retrying in 2s...",
|
||||
exc_info=True
|
||||
)
|
||||
await asyncio.sleep(2)
|
||||
|
||||
|
|
|
|||
|
|
@ -288,6 +288,7 @@ class RabbitMQBackend:
|
|||
port=port,
|
||||
virtual_host=vhost,
|
||||
credentials=pika.PlainCredentials(username, password),
|
||||
heartbeat=0,
|
||||
)
|
||||
logger.info(f"RabbitMQ backend: {host}:{port} vhost={vhost}")
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ class CollectionManagementResponseTranslator(MessageTranslator):
|
|||
def encode(self, obj: CollectionManagementResponse) -> Dict[str, Any]:
|
||||
result = {}
|
||||
|
||||
print("COLLECTIONMGMT", obj, flush=True)
|
||||
|
||||
if obj.error is not None:
|
||||
result["error"] = {
|
||||
|
|
@ -99,6 +98,4 @@ class CollectionManagementResponseTranslator(MessageTranslator):
|
|||
"tags": list(coll.tags) if coll.tags else []
|
||||
})
|
||||
|
||||
print("RESULT IS", result, flush=True)
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue