[Bug] Fix IndentationError: expected an indented block after 'with' statement (#46627)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-06-24 23:14:17 +08:00
committed by GitHub
parent f889325c51
commit 1cd3e0e945
+2 -7
View File
@@ -1950,13 +1950,8 @@ class DPEngineCoreProc(EngineCoreProc):
continue
# Execute a dummy pass when no ready requests ran, unless the
# engine is sleeping. self.is_sleeping() also covers the KV-offload
# window before model_executor.is_sleeping flips.
elif not self.is_sleeping():
with self.log_iteration_details(None):
# We are in a running state and so must execute a dummy pass
# if the model didn't execute any ready requests.
if not self.model_executor.is_sleeping:
# engine is sleeping.
elif not self.model_executor.is_sleeping:
with self.log_iteration_details(None):
self.execute_dummy_batch()