Skip to content

refactor(miles): build coordinator name via get_coordinator_actor_name (F7)#17

Merged
zhenyulincs merged 1 commit into
rlops:zhenyu/m11-mvp-testfrom
TianyeGGBond:tianye/f7-coordinator-actor-name-helper
Jun 21, 2026
Merged

refactor(miles): build coordinator name via get_coordinator_actor_name (F7)#17
zhenyulincs merged 1 commit into
rlops:zhenyu/m11-mvp-testfrom
TianyeGGBond:tianye/f7-coordinator-actor-name-helper

Conversation

@TianyeGGBond

Copy link
Copy Markdown

Context

F7 (per-pipeline Ray namespace isolation) requires the miles drivers to name the
coordinator actor exactly as the rlix scheduler resolves it. The drivers built
that name by hand-writing f"{COORDINATOR_ACTOR_NAME_PREFIX}{pipeline_id}",
duplicating the convention the scheduler also hand-writes — the drift risk behind
the M11.1 "Failed to resolve actor" bug.

Change

  • examples/rlix/run_miles_rlix.py and examples/rlix/run_miles_dual.py: build
    the coordinator name via get_coordinator_actor_name(pipeline_id) instead of
    the raw f-string. Import the helper in place of COORDINATOR_ACTOR_NAME_PREFIX
    (in run_miles_dual.py it is threaded through _build_pipeline the same way
    get_pipeline_namespace already is).
  • run_miles_rlix.py: trim the stale comment that pinned a scheduler source line
    number (scheduler.py:1213) plus M11 debug history down to a concise note on
    why the name must match the scheduler.

No behavior change — the produced actor name is identical.

Related

Depends on rlops/rlix#27, which adds get_coordinator_actor_name to
rlix.protocol.types. That PR should merge first; this one imports the helper
from there.

…e (F7)

The drivers named the per-pipeline coordinator actor by hand-writing
f"{COORDINATOR_ACTOR_NAME_PREFIX}{pipeline_id}", duplicating the convention the
rlix scheduler also hand-writes. Build the name through the shared
get_coordinator_actor_name() helper instead, threaded through _build_pipeline
the same way get_pipeline_namespace already is.

Also trim the stale comment in run_miles_rlix.py that pinned a scheduler source
line number and M11 debug history down to a concise note on why the name must
match the scheduler.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zhenyulincs
zhenyulincs merged commit aa39345 into rlops:zhenyu/m11-mvp-test Jun 21, 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.

2 participants