Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rlix/pipeline/miles_model_update_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ async def _run_atomic_unit(
# so the subsequent flush_cache returns 200 immediately.
try:
pause_refs = [h.pause_generation.remote(mode="retract") for h in handles.values()]
inflight_refs.extend(pause_refs)
await _ray_get(pause_refs)
except Exception as exc: # noqa: BLE001
logger.warning(
Expand All @@ -313,6 +314,7 @@ async def _run_atomic_unit(
# (4.post) resume the engines so subsequent generate calls work.
try:
cont_refs = [h.continue_generation.remote() for h in handles.values()]
inflight_refs.extend(cont_refs)
await _ray_get(cont_refs)
except Exception as exc: # noqa: BLE001
logger.warning(
Expand Down