Off-by-one error in RabbitMQ broker enqueue retry count
warningConnection ManagementUpdated Dec 20, 2024(via Exa)
How to detect:
The RabbitMQ broker's enqueue() method does not attempt the correct number of preset retries due to an off-by-one error, potentially causing premature failure when enqueueing messages during transient RabbitMQ connectivity issues.
Recommended action:
Upgrade Dramatiq to a version including PR #669 (merged 2024-12-22, commit 6f1f5d9). After upgrade, monitor dramatiq.messages.enqueued and dramatiq.messages.failed metrics during RabbitMQ instability to verify correct retry behavior.