[Questions] Clarification on consumer_timeout behavior and Celery channel lifecycle #13335
-
Community Support Policy
QuestionHey everyone! I’d like to clarify the behavior of
So, does this mean that a channel only closes when an unacknowledged message exceeds the timeout, or will it also close if it’s simply inactive with no messages received? Additionally, when using Celery as a consumer, does the channel stay open as long as the Celery process is running, or is it created only when there are messages to process? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@jrcastro2 your understanding is incorrect. Channels are not closed for being idle. The relevant doc section is called Delivery Acknowledgement Timeout. A channel that only has consumers that use automatic acknowledgements, consumers that acknowledge messages reasonably quickly or is only used for publishing will never be closed for inactivity (unless its connection is closed). |
Beta Was this translation helpful? Give feedback.
@jrcastro2 your understanding is incorrect. Channels are not closed for being idle.
The relevant doc section is called Delivery Acknowledgement Timeout.
A channel that only has consumers that use automatic acknowledgements, consumers that acknowledge messages reasonably quickly or is only used for publishing will never be closed for inactivity (unless its connection is closed).