Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
b9fe4616
Unverified
Commit
b9fe4616
authored
Sep 15, 2023
by
Jerry Yang
Committed by
GitHub
Sep 14, 2023
Browse files
Abort when coroutine is cancelled (#1020)
parent
64ca424e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vllm/engine/async_llm_engine.py
vllm/engine/async_llm_engine.py
+3
-2
No files found.
vllm/engine/async_llm_engine.py
View file @
b9fe4616
...
@@ -395,8 +395,9 @@ class AsyncLLMEngine:
...
@@ -395,8 +395,9 @@ class AsyncLLMEngine:
async
for
request_output
in
stream
:
async
for
request_output
in
stream
:
yield
request_output
yield
request_output
except
Exception
as
e
:
except
(
Exception
,
asyncio
.
CancelledError
)
as
e
:
# If there is an exception, abort the request.
# If there is an exception or coroutine is cancelled, abort the
# request.
self
.
_abort
(
request_id
)
self
.
_abort
(
request_id
)
raise
e
raise
e
...
...
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