[Frontend][RL] Align sleep-mode API responses and operation metrics (#52864)
Signed-off-by: Ronald1995 <ronaldautomobile@163.com> Signed-off-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: aoshen02 <aoshen02@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
aoshen02
Claude Opus 5.5
parent
29773c722b
commit
e5f3d08d72
@@ -1110,12 +1110,14 @@ class AsyncLLM(EngineClient):
|
||||
if self.logger_manager is not None:
|
||||
self.logger_manager.record_sleep_state(1, 0)
|
||||
|
||||
async def wake_up(self, tags: list[str] | None = None) -> None:
|
||||
async def wake_up(self, tags: list[str] | None = None) -> bool:
|
||||
fully_awake = await self.engine_core.wake_up_async(tags)
|
||||
|
||||
if self.logger_manager is not None and fully_awake:
|
||||
self.logger_manager.record_sleep_state(0, 0)
|
||||
|
||||
return fully_awake
|
||||
|
||||
async def checkpoint_prepare(self) -> None:
|
||||
await self.collective_rpc("checkpoint_prepare")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user