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:
cybermaggedon 2026-04-21 21:30:19 +01:00 committed by GitHub
parent 0ef49ab6ae
commit 424ace44c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 140 additions and 5 deletions

View file

@ -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}")