Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-96471: Add queue shutdown, next step.#102499
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes from1 commit
Commits
Show all changes
74 commits Select commitHold shift + click to select a range
4fd0640
Add threading implementation of queue shutdown
EpicWinkd942c9e
Fix up implementation, add unit-tests
EpicWinkf552ac1
Implement for asyncio queues
EpicWink78671f9
WIP: multiprocessing queue shutdown
EpicWink5f31f8e
WIP: multiprocessing queue shutdown
EpicWink9bbc5db
change comment
YvesDupf9f2c06
call to self._finished.set() in order to release all joined tasks/coros
YvesDup7491ef1
add unitests to `shutdwon` method
YvesDupdd22c6b
add unitests to `shutdwon` method
YvesDup5239306
replace global state variable with an enum `_QueueState`
YvesDup4b127b6
replace global state variable with an enum `_QueueState` - erase E ju…
YvesDup6402de7
simplify and unify tests
YvesDupbe9588b
simplify and unify tests
YvesDup3613f5d
add `_shutdown_state` to tuples of `__getstate__` and `__setstate__`,…
YvesDup06775bb
Update initial tests with `self.assertRaises`
YvesDup6f01015
integration of shudown transition in `shutdown` method
YvesDupff9895d
Set `test_shutdown` prefix to all unittests
YvesDupd42433e
asyncio.queue: refactoring of tests, add new tests, last updates and…
YvesDup53078bb
first version working
YvesDup0075039
Some corrections
YvesDupb4a53d2
Change Enum to global about `shutdown_state` attr
YvesDupdbe2078
Add new tests
YvesDup18bb995
Fixes bugs
YvesDup05700d5
Add first tests
YvesDup7d01747
Update tests
YvesDupaad0cba
add _wait()
YvesDupd9dbb33
Move some tests about shutdwon state and empty queue
YvesDup9f4c0a3
Merge branch 'python:main' into queue-shutdown
YvesDupdb6a257
📜🤖 Added by blurb_it.
blurb-it[bot]01e5880
Update 2023-03-07-15-42-27.gh-issue-96471.oWZtwQ.rst
YvesDup88627bb
Merge branch 'main' into queue-shutdown
YvesDup37da705
Update test _shutdown_all_methods
YvesDup795fb2d
Fix some bugs, Refactoring code
YvesDup0de7836
Merge branch 'main' into queue-shutdown
YvesDup4443237
Merge branch 'main' into queue-shutdown
YvesDup499157d
Merge branch 'main' into queue-shutdown
AlexWaygood99eadd7
Update test names
YvesDup670d864
Refactoring and fix minor bugs
YvesDup6af0e8e
suppress import enum
YvesDupa3e03c5
update docstrings
YvesDupbc30db7
Suppress `import ctypes`, causes no necessary uses
YvesDup64defd4
Merge branch 'main' into queue-shutdown
YvesDup4382409
fix segmentation fault: use ctx.Value,
YvesDupaa70dc2
fix segmentation fault:
YvesDupcbfd771
Add private method about shutdown_state
YvesDup0d095bc
Add private methods to check _shutdown_state attr
YvesDup6d1f072
Merge branch 'main' into queue-shutdown
YvesDup891cffe
Update docs for queue shutdown
EpicWinke30933f
Update Lib/queue.py
YvesDupde5714d
Update Lib/asyncio/queues.py
YvesDupda2e3c7
Update Lib/asyncio/queues.py
YvesDup50857c0
Update Lib/asyncio/queues.py
YvesDup56272b9
Update Lib/queue.py
YvesDupdb7eaff
Update Lib/queue.py
YvesDup4099fb8
Update Lib/multiprocessing/queues.py
YvesDup58007dc
Update Lib/asyncio/queues.py
YvesDup225387f
Update Lib/asyncio/queues.py
YvesDup7c6e1c7
Update Lib/queue.py
YvesDupc025766
Update Lib/asyncio/queues.py
YvesDupc9ae3be
Update Lib/asyncio/queues.py
YvesDupe9b66b2
Update some tests
YvesDup570158e
Suppress a borderline assert
YvesDupeeb47b0
Fix bugs
YvesDup6f0b131
Merge branch 'main' into queue-shutdown
YvesDup4e2a19e
ran patchcheck
YvesDup6926e11
remove ./Tools/c-analyzer/cpython/_parser.py
YvesDupd301c90
Merge branch 'main' into queue-shutdown
arhadthedev49879a0
Merge branch 'main' into queue-shutdown
YvesDup31ea16b
Add `shutdown` method documentation
YvesDupbed3a4b
Add `shutdown` method to documentation
YvesDup8e8dcfa
Add `shutdown` method to documentation
YvesDup9eed14e
Add `shutdown` method to documentation
YvesDup66efd9c
Merge pull request #4 from EpicWink/yvesdup-queue-shutdown-2
YvesDupf4ad064
Merge branch 'main' into queue-shutdown
YvesDupFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
change comment
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit9bbc5db5b4678be31cd61603880f821632f5a89e
There are no files selected for viewing
4 changes: 4 additions & 0 deletionsLib/queue.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.