Skip to content

Remove duplicate shrink engine handle lookup#6

Open
TianyeGGBond wants to merge 1 commit into
rlops:zhenyu/m11-mvp-testfrom
TianyeGGBond:tianye/f2-shrink-cleanup
Open

Remove duplicate shrink engine handle lookup#6
TianyeGGBond wants to merge 1 commit into
rlops:zhenyu/m11-mvp-testfrom
TianyeGGBond:tianye/f2-shrink-cleanup

Conversation

@TianyeGGBond
Copy link
Copy Markdown

@TianyeGGBond TianyeGGBond commented May 29, 2026

Context

RolloutManager.shrink_engines builds the target engine handle list before closing router admission. The same handle list is still valid for the following abort/drain checks because the shrink path does not mutate engine handles between those steps.

Summary

  • remove the second handles = [self._engines[idx].handle for idx in indices] lookup after _abort_engines(indices)
  • leave the existing shrink ordering, comments, logging, and error propagation unchanged

Validation

  • python -m py_compile miles/ray/rollout.py

@TianyeGGBond TianyeGGBond force-pushed the tianye/f2-shrink-cleanup branch from 7667725 to 13bc53b Compare May 29, 2026 00:22
@TianyeGGBond TianyeGGBond changed the title Simplify shrink engine handle reuse Remove duplicate shrink engine handle lookup May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant