Unverified Commit a01a1c0d authored by Frelam's avatar Frelam Committed by GitHub
Browse files

[Bugfix] fix encoder cache leak of waiting requests in scheduler to solve...


[Bugfix] fix encoder cache leak of waiting requests in scheduler to solve stuck in CPU scheduling (#31857)
Signed-off-by: default avatarfrelam <frelam112233@gmail.com>
Co-authored-by: default avatarRoger Wang <hey@rogerw.io>
parent da6709c9
......@@ -598,6 +598,11 @@ class Scheduler(SchedulerInterface):
if new_blocks is None:
# The request cannot be scheduled.
# NOTE: we need to untouch the request from the encode cache
# manager
if request.has_encoder_inputs:
self.encoder_cache_manager.free(request)
break
# KVTransfer: the connector uses this info to determine
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment