-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 47 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
4fd0640
Add threading implementation of queue shutdown
EpicWink d942c9e
Fix up implementation, add unit-tests
EpicWink f552ac1
Implement for asyncio queues
EpicWink 78671f9
WIP: multiprocessing queue shutdown
EpicWink 5f31f8e
WIP: multiprocessing queue shutdown
EpicWink 9bbc5db
change comment
YvesDup f9f2c06
call to self._finished.set() in order to release all joined tasks/coros
YvesDup 7491ef1
add unitests to `shutdwon` method
YvesDup dd22c6b
add unitests to `shutdwon` method
YvesDup 5239306
replace global state variable with an enum `_QueueState`
YvesDup 4b127b6
replace global state variable with an enum `_QueueState` - erase E ju…
YvesDup 6402de7
simplify and unify tests
YvesDup be9588b
simplify and unify tests
YvesDup 3613f5d
add `_shutdown_state` to tuples of `__getstate__` and `__setstate__`,…
YvesDup 06775bb
Update initial tests with `self.assertRaises`
YvesDup 6f01015
integration of shudown transition in `shutdown` method
YvesDup ff9895d
Set `test_shutdown` prefix to all unittests
YvesDup d42433e
asyncio.queue: refactoring of tests, add new tests, last updates and…
YvesDup 53078bb
first version working
YvesDup 0075039
Some corrections
YvesDup b4a53d2
Change Enum to global about `shutdown_state` attr
YvesDup dbe2078
Add new tests
YvesDup 18bb995
Fixes bugs
YvesDup 05700d5
Add first tests
YvesDup 7d01747
Update tests
YvesDup aad0cba
add _wait()
YvesDup d9dbb33
Move some tests about shutdwon state and empty queue
YvesDup 9f4c0a3
Merge branch 'python:main' into queue-shutdown
YvesDup db6a257
📜🤖 Added by blurb_it.
blurb-it[bot] 01e5880
Update 2023-03-07-15-42-27.gh-issue-96471.oWZtwQ.rst
YvesDup 88627bb
Merge branch 'main' into queue-shutdown
YvesDup 37da705
Update test _shutdown_all_methods
YvesDup 795fb2d
Fix some bugs, Refactoring code
YvesDup 0de7836
Merge branch 'main' into queue-shutdown
YvesDup 4443237
Merge branch 'main' into queue-shutdown
YvesDup 499157d
Merge branch 'main' into queue-shutdown
AlexWaygood 99eadd7
Update test names
YvesDup 670d864
Refactoring and fix minor bugs
YvesDup 6af0e8e
suppress import enum
YvesDup a3e03c5
update docstrings
YvesDup bc30db7
Suppress `import ctypes`, causes no necessary uses
YvesDup 64defd4
Merge branch 'main' into queue-shutdown
YvesDup 4382409
fix segmentation fault: use ctx.Value,
YvesDup aa70dc2
fix segmentation fault:
YvesDup cbfd771
Add private method about shutdown_state
YvesDup 0d095bc
Add private methods to check _shutdown_state attr
YvesDup 6d1f072
Merge branch 'main' into queue-shutdown
YvesDup 891cffe
Update docs for queue shutdown
EpicWink e30933f
Update Lib/queue.py
YvesDup de5714d
Update Lib/asyncio/queues.py
YvesDup da2e3c7
Update Lib/asyncio/queues.py
YvesDup 50857c0
Update Lib/asyncio/queues.py
YvesDup 56272b9
Update Lib/queue.py
YvesDup db7eaff
Update Lib/queue.py
YvesDup 4099fb8
Update Lib/multiprocessing/queues.py
YvesDup 58007dc
Update Lib/asyncio/queues.py
YvesDup 225387f
Update Lib/asyncio/queues.py
YvesDup 7c6e1c7
Update Lib/queue.py
YvesDup c025766
Update Lib/asyncio/queues.py
YvesDup c9ae3be
Update Lib/asyncio/queues.py
YvesDup e9b66b2
Update some tests
YvesDup 570158e
Suppress a borderline assert
YvesDup eeb47b0
Fix bugs
YvesDup 6f0b131
Merge branch 'main' into queue-shutdown
YvesDup 4e2a19e
ran patchcheck
YvesDup 6926e11
remove ./Tools/c-analyzer/cpython/_parser.py
YvesDup d301c90
Merge branch 'main' into queue-shutdown
arhadthedev 49879a0
Merge branch 'main' into queue-shutdown
YvesDup 31ea16b
Add `shutdown` method documentation
YvesDup bed3a4b
Add `shutdown` method to documentation
YvesDup 8e8dcfa
Add `shutdown` method to documentation
YvesDup 9eed14e
Add `shutdown` method to documentation
YvesDup 66efd9c
Merge pull request #4 from EpicWink/yvesdup-queue-shutdown-2
YvesDup f4ad064
Merge branch 'main' into queue-shutdown
YvesDup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.