The Wayback Machine - http://web.archive.org/web/20200706154931/https://github.com/celery/kombu/issues/1147
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory channel doesn't clear queues on close #1147

Open
karolinepauls opened this issue Jan 24, 2020 · 2 comments
Open

Memory channel doesn't clear queues on close #1147

karolinepauls opened this issue Jan 24, 2020 · 2 comments

Comments

@karolinepauls
Copy link

@karolinepauls karolinepauls commented Jan 24, 2020

queue.empty()

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.

@auvipy
Copy link
Member

@auvipy auvipy commented Feb 1, 2020

failing test case with a fix?

@karolinepauls
Copy link
Author

@karolinepauls karolinepauls commented Feb 4, 2020

@auvipy There is no fix because I don't know what the expected behaviour is.

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.

It is crucial to decide on the behaviour wanted before commencing implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.