Skip to content

bpo-36813: Fix QueueListener to call task_done() upon termination.#13113

Merged
miss-islington merged 7 commits into
python:masterfrom
bharel:fix-queuelistener
Jun 1, 2019
Merged

bpo-36813: Fix QueueListener to call task_done() upon termination.#13113
miss-islington merged 7 commits into
python:masterfrom
bharel:fix-queuelistener

Conversation

@bharel
Copy link
Copy Markdown
Contributor

@bharel bharel commented May 6, 2019

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).

https://bugs.python.org/issue36813

@bharel
Copy link
Copy Markdown
Contributor Author

bharel commented May 7, 2019

@rhettinger @vsajip Alright, regression tests added, all tests pass. Ready for upload!

@asvetlov
Copy link
Copy Markdown
Contributor

asvetlov commented Jun 1, 2019

thanks!

@miss-islington miss-islington merged commit 6b282e1 into python:master Jun 1, 2019
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @bharel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link
Copy Markdown

GH-13722 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 1, 2019
…ythonGH-13113)

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).

https://bugs.python.org/issue36813
(cherry picked from commit 6b282e1)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
miss-islington added a commit that referenced this pull request Jun 1, 2019
…H-13113)

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).

https://bugs.python.org/issue36813
(cherry picked from commit 6b282e1)

Co-authored-by: Bar Harel <bzvi7919@gmail.com>
@bharel bharel deleted the fix-queuelistener branch December 23, 2019 12:37
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…ythonGH-13113)

Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).


https://bugs.python.org/issue36813
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants