Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
YvesDup wants to merge74 commits intopython:mainfromYvesDup:queue-shutdown
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
EpicWinkSep 1, 2022
d942c9e
Fix up implementation, add unit-tests
EpicWinkSep 18, 2022
f552ac1
Implement for asyncio queues
EpicWinkSep 18, 2022
78671f9
WIP: multiprocessing queue shutdown
EpicWinkOct 22, 2022
5f31f8e
WIP: multiprocessing queue shutdown
EpicWinkJan 19, 2023
9bbc5db
change comment
YvesDupFeb 10, 2023
f9f2c06
call to self._finished.set() in order to release all joined tasks/coros
YvesDupFeb 10, 2023
7491ef1
add unitests to `shutdwon` method
YvesDupFeb 10, 2023
dd22c6b
add unitests to `shutdwon` method
YvesDupFeb 10, 2023
5239306
replace global state variable with an enum `_QueueState`
YvesDupFeb 10, 2023
4b127b6
replace global state variable with an enum `_QueueState` - erase E ju…
YvesDupFeb 10, 2023
6402de7
simplify and unify tests
YvesDupFeb 11, 2023
be9588b
simplify and unify tests
YvesDupFeb 11, 2023
3613f5d
add `_shutdown_state` to tuples of `__getstate__` and `__setstate__`,…
YvesDupFeb 13, 2023
06775bb
Update initial tests with `self.assertRaises`
YvesDupFeb 15, 2023
6f01015
integration of shudown transition in `shutdown` method
YvesDupFeb 15, 2023
ff9895d
Set `test_shutdown` prefix to all unittests
YvesDupFeb 15, 2023
d42433e
asyncio.queue: refactoring of tests, add new tests, last updates and…
YvesDupFeb 28, 2023
53078bb
first version working
YvesDupFeb 28, 2023
0075039
Some corrections
YvesDupFeb 28, 2023
b4a53d2
Change Enum to global about `shutdown_state` attr
YvesDupMar 3, 2023
dbe2078
Add new tests
YvesDupMar 3, 2023
18bb995
Fixes bugs
YvesDupMar 3, 2023
05700d5
Add first tests
YvesDupMar 3, 2023
7d01747
Update tests
YvesDupMar 3, 2023
aad0cba
add _wait()
YvesDupMar 3, 2023
d9dbb33
Move some tests about shutdwon state and empty queue
YvesDupMar 3, 2023
9f4c0a3
Merge branch 'python:main' into queue-shutdown
YvesDupMar 4, 2023
db6a257
📜🤖 Added by blurb_it.
blurb-it[bot]Mar 7, 2023
01e5880
Update 2023-03-07-15-42-27.gh-issue-96471.oWZtwQ.rst
YvesDupMar 7, 2023
88627bb
Merge branch 'main' into queue-shutdown
YvesDupMar 7, 2023
37da705
Update test _shutdown_all_methods
YvesDupMar 7, 2023
795fb2d
Fix some bugs, Refactoring code
YvesDupMar 8, 2023
0de7836
Merge branch 'main' into queue-shutdown
YvesDupMar 9, 2023
4443237
Merge branch 'main' into queue-shutdown
YvesDupMar 15, 2023
499157d
Merge branch 'main' into queue-shutdown
AlexWaygoodMar 15, 2023
99eadd7
Update test names
YvesDupMar 15, 2023
670d864
Refactoring and fix minor bugs
YvesDupMar 15, 2023
6af0e8e
suppress import enum
YvesDupMar 15, 2023
a3e03c5
update docstrings
YvesDupMar 17, 2023
bc30db7
Suppress `import ctypes`, causes no necessary uses
YvesDupMar 17, 2023
64defd4
Merge branch 'main' into queue-shutdown
YvesDupMar 19, 2023
4382409
fix segmentation fault: use ctx.Value,
YvesDupMar 22, 2023
aa70dc2
fix segmentation fault:
YvesDupMar 22, 2023
cbfd771
Add private method about shutdown_state
YvesDupMar 22, 2023
0d095bc
Add private methods to check _shutdown_state attr
YvesDupMar 24, 2023
6d1f072
Merge branch 'main' into queue-shutdown
YvesDupMar 24, 2023
891cffe
Update docs for queue shutdown
EpicWinkMar 28, 2023
e30933f
Update Lib/queue.py
YvesDupMar 29, 2023
de5714d
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
da2e3c7
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
50857c0
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
56272b9
Update Lib/queue.py
YvesDupMar 29, 2023
db7eaff
Update Lib/queue.py
YvesDupMar 29, 2023
4099fb8
Update Lib/multiprocessing/queues.py
YvesDupMar 29, 2023
58007dc
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
225387f
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
7c6e1c7
Update Lib/queue.py
YvesDupMar 29, 2023
c025766
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
c9ae3be
Update Lib/asyncio/queues.py
YvesDupMar 29, 2023
e9b66b2
Update some tests
YvesDupApr 6, 2023
570158e
Suppress a borderline assert
YvesDupApr 6, 2023
eeb47b0
Fix bugs
YvesDupApr 6, 2023
6f0b131
Merge branch 'main' into queue-shutdown
YvesDupApr 7, 2023
4e2a19e
ran patchcheck
YvesDupApr 7, 2023
6926e11
remove ./Tools/c-analyzer/cpython/_parser.py
YvesDupApr 7, 2023
d301c90
Merge branch 'main' into queue-shutdown
arhadthedevApr 10, 2023
49879a0
Merge branch 'main' into queue-shutdown
YvesDupApr 11, 2023
31ea16b
Add `shutdown` method documentation
YvesDupMay 5, 2023
bed3a4b
Add `shutdown` method to documentation
YvesDupMay 5, 2023
8e8dcfa
Add `shutdown` method to documentation
YvesDupMay 5, 2023
9eed14e
Add `shutdown` method to documentation
YvesDupMay 5, 2023
66efd9c
Merge pull request #4 from EpicWink/yvesdup-queue-shutdown-2
YvesDupMay 5, 2023
f4ad064
Merge branch 'main' into queue-shutdown
YvesDupMay 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
change comment
  • Loading branch information
@YvesDup
YvesDup committedFeb 10, 2023
commit9bbc5db5b4678be31cd61603880f821632f5a89e
4 changes: 4 additions & 0 deletionsLib/queue.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -245,6 +245,10 @@ def shutdown(self, immediate=False):
if immediate:
self.shutdown_state = _queue_shutdown_immediate
self.not_empty.notify_all()
# set self.unfinished_tasks to 0
# to break the loop in 'self.join()'
# when quits from `wait()`
self.unfinished_tasks = 0
self.all_tasks_done.notify_all()
else:
self.shutdown_state = _queue_shutdown
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp