Skip to content

Make start_engines async and await engine init inside it - #1876

Open
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op5-10from
tom/refactor-miles/op5-12
Open

Make start_engines async and await engine init inside it#1876
fzyzcjy wants to merge 1 commit into
tom/refactor-miles/op5-10from
tom/refactor-miles/op5-12

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Part of #1837

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch from df3e2ef to 6dcfbd7 Compare July 28, 2026 13:31
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch 2 times, most recently from 8049dac to dc38c1c Compare August 3, 2026 23:44
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch 2 times, most recently from 69a82f8 to da8a37d Compare August 4, 2026 00:39
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch 2 times, most recently from cdc8c1f to 23c20fa Compare August 4, 2026 06:57
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch from da8a37d to 7cecf83 Compare August 4, 2026 06:57
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch from 23c20fa to f465bcd Compare August 6, 2026 07:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch from 7cecf83 to eb791e9 Compare August 6, 2026 07:03
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch from f465bcd to e34f5f9 Compare August 10, 2026 06:07
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch 3 times, most recently from f2c73a2 to d15cdac Compare August 10, 2026 16:34
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch from 1fb4d92 to d31c66c Compare August 12, 2026 02:48
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch 5 times, most recently from 9175c4b to 828246e Compare August 13, 2026 03:25
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch 2 times, most recently from 80f1dd4 to fd62164 Compare August 13, 2026 06:01
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch from 828246e to 5acf6a2 Compare August 13, 2026 06:01
start_engines now awaits its engines' init and returns only the new
engine indices; recover drops its separate gather, and
start_rollout_servers submits one start future per group and collects
them with wait_futures. Actor creation, port allocation and state
marking all sit before the first await point, so concurrently running
starts cannot double-allocate a slot, and port allocation stays
serialized because alloc's blocking ray.get never yields the loop.
Squashed commits:
- Make start_engines async and await engine init inside it
- Apply black auto-fix
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-10 branch from fd62164 to f666bf2 Compare August 14, 2026 04:45
@fzyzcjy
fzyzcjy force-pushed the tom/refactor-miles/op5-12 branch from 5acf6a2 to ceb9c73 Compare August 14, 2026 04:45

@guapisolo guapisolo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed in stack context. This PR safely moves init waiting into ServerGroup; the later stack completes the lifecycle-ownership cleanup before the safe-merge checkpoint at #2176. No active finding remains. LGTM.

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.

2 participants