mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-02 11:52:37 +02:00
Fix library queue lifecycle (#838)
* Don't delete the global queues (librarian) when flows are deleted * 60s heartbeat timeouts on RabbitMQ
This commit is contained in:
parent
0ef49ab6ae
commit
424ace44c4
2 changed files with 140 additions and 5 deletions
|
|
@ -326,7 +326,15 @@ class RabbitMQBackend:
|
|||
port=port,
|
||||
virtual_host=vhost,
|
||||
credentials=pika.PlainCredentials(username, password),
|
||||
heartbeat=0,
|
||||
# Heartbeats let us detect silently-dead connections
|
||||
# (broker restarts, network partitions, orphaned channels)
|
||||
# within ~2×interval. Consumer threads drive pika's I/O
|
||||
# loop every 100ms via process_data_events() in receive(),
|
||||
# so heartbeat frames get pumped automatically. Producers
|
||||
# reconnect lazily on the next publish if their connection
|
||||
# has been aged out by the broker.
|
||||
heartbeat=60,
|
||||
blocked_connection_timeout=300,
|
||||
)
|
||||
logger.info(f"RabbitMQ backend: {host}:{port} vhost={vhost}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue