[KVConnector][Mooncake] Wire reset_cache cascade end-to-end (#42694)
Signed-off-by: aoshen524 <aoshen524@gmail.com> Signed-off-by: Ao Shen <aoshen@inferact.ai> Co-authored-by: aoshen524 <aoshen524@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
aoshen524
Claude Opus 4.7
parent
0fa3114ae1
commit
1fc2cee50a
@@ -1945,8 +1945,16 @@ class Scheduler(SchedulerInterface):
|
||||
|
||||
def reset_connector_cache(self) -> bool:
|
||||
if self.connector is None:
|
||||
logger.warning("reset_connector called but no KV connector is configured.")
|
||||
return False
|
||||
# No connector attached -> nothing to reset, treat as success so
|
||||
# callers that unconditionally request a connector reset (e.g. as
|
||||
# part of a cache-clearing cascade after a weight update) don't
|
||||
# see reset_prefix_cache() flip to False purely because they
|
||||
# didn't configure a connector.
|
||||
logger.debug(
|
||||
"reset_connector requested but no KV connector is configured; "
|
||||
"treating as no-op success."
|
||||
)
|
||||
return True
|
||||
|
||||
if self.connector.reset_cache() is False:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user