Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
9dfbeb41
Unverified
Commit
9dfbeb41
authored
Sep 05, 2025
by
Shiyan Deng
Committed by
GitHub
Sep 05, 2025
Browse files
[RFC] allow cancelation after shutdown in blocking collective_rpc (#23390)
Signed-off-by:
Shiyan Deng
<
dsy842974287@meta.com
>
parent
eedb2a2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vllm/v1/executor/multiproc_executor.py
vllm/v1/executor/multiproc_executor.py
+8
-6
No files found.
vllm/v1/executor/multiproc_executor.py
View file @
9dfbeb41
...
...
@@ -253,7 +253,8 @@ class MultiprocExecutor(Executor):
if
not
non_block
:
result
=
result
.
result
()
elif
not
non_block
:
result
=
get_response
(
w
,
dequeue_timeout
)
result
=
get_response
(
w
,
dequeue_timeout
,
self
.
shutdown_event
)
else
:
raise
RuntimeError
(
"non_block can only be used when"
" max_concurrent_batches > 1"
)
...
...
@@ -295,12 +296,8 @@ class MultiprocExecutor(Executor):
"""Properly shut down the executor and its workers"""
if
not
getattr
(
self
,
'shutting_down'
,
False
):
self
.
shutting_down
=
True
self
.
shutdown_event
.
set
()
if
self
.
io_thread_pool
is
not
None
:
self
.
io_thread_pool
.
shutdown
(
wait
=
False
,
cancel_futures
=
True
)
self
.
io_thread_pool
=
None
# Make sure all the worker processes are terminated first.
if
workers
:
=
getattr
(
self
,
'workers'
,
None
):
for
w
in
workers
:
# Close death_writer to signal child processes to exit
...
...
@@ -310,6 +307,11 @@ class MultiprocExecutor(Executor):
w
.
worker_response_mq
=
None
self
.
_ensure_worker_termination
([
w
.
proc
for
w
in
workers
])
self
.
shutdown_event
.
set
()
if
self
.
io_thread_pool
is
not
None
:
self
.
io_thread_pool
.
shutdown
(
wait
=
False
,
cancel_futures
=
True
)
del
self
.
io_thread_pool
self
.
rpc_broadcast_mq
=
None
def
check_health
(
self
)
->
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment