Memory channel doesn't clear queues on close #1474
Replies: 5 comments
-
failing test case with a fix? |
Beta Was this translation helpful? Give feedback.
-
@auvipy There is no fix because I don't know what the expected behaviour is.
It is crucial to decide on the behaviour wanted before commencing implementation. |
Beta Was this translation helpful? Give feedback.
-
This is definitely a mistake. |
Beta Was this translation helpful? Give feedback.
-
The question remains - channel-scoped or transport-scoped? If it's answered, the fix is trivial. |
Beta Was this translation helpful? Give feedback.
-
If you purge the queue using RabbitMQ, it is purged for all channels, right? |
Beta Was this translation helpful? Give feedback.
-
kombu/kombu/transport/memory.py
Line 59 in cbd327d
queue.empty()
doesn't empty the queue - it returns a boolean stating whether the queue is empty. In order to clear a queue (without touching the internals), one has to pop from it until it's empty.It remains a question if clearing should take place at all and whether the queues should be channel-scoped or transport-scoped. There's definitely a need to be able to clear the queues between tests.
Beta Was this translation helpful? Give feedback.
All reactions