Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Justin Yu <[email protected]>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
This was referenced Oct 23, 2026
pseudo-rnd-thoughts
pushed a commit
to pseudo-rnd-thoughts/ray
that referenced
this pull request
Oct 27, 2026
…ecision In INITIALIZING, RESTARTING and RESCHEDULING, `TrainController._step` never awaits. While the scaling policy keeps returning `NoopDecision` (an elastic run waiting for `min_workers` to fit, or a failed coordinator query), `run()` loops without giving up the event loop. The controller actor then spins a full core, and calls like `abort()` can't reach it. This has been the case for elastic runs since elastic training landed; it isn't caused by the reservation pinning that was reverted. `_step` now sleeps `RAY_TRAIN_HEALTH_CHECK_INTERVAL_S` before asking the policy again, matching the running path's poll interval. Once `abort()` can run during that sleep, the control loop must not overwrite the `AbortedState` it sets with the state the iteration computed before the abort, or `run()` would go back to waiting. The loop now leaves a terminal state set concurrently by `abort()` in place. The yield is the control-loop change from ray-project#66763, split out so it can land on its own. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Mark Towers <[email protected]>
pseudo-rnd-thoughts
pushed a commit
to pseudo-rnd-thoughts/ray
that referenced
this pull request
Oct 27, 2026
…ecision In INITIALIZING, RESTARTING and RESCHEDULING, `TrainController._step` never awaits. While the scaling policy keeps returning `NoopDecision` (an elastic run waiting for `min_workers` to fit, or a failed coordinator query), `run()` loops without giving up the event loop. The controller actor then spins a full core, and calls like `abort()` can't reach it. This has been the case for elastic runs since elastic training landed; it isn't caused by the reservation pinning that was reverted. `_step` now sleeps `RAY_TRAIN_HEALTH_CHECK_INTERVAL_S` before asking the policy again, matching the running path's poll interval. Once `abort()` can run during that sleep, the control loop must not overwrite the `AbortedState` it sets with the state the iteration computed before the abort, or `run()` would go back to waiting. The loop now leaves a terminal state set concurrently by `abort()` in place. The yield is the control-loop change from ray-project#66763, split out so it can land on its own. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Mark Towers <[email protected]>
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on the
ResizeDecisionpinning PR. That PR has the elastic policy put node pins on its decision. This one moves the fixed policy to the same model, so every policy returns its pins with the decision and the controller no longer polls the coordinator.FixedScalingPolicy.make_decision_for_non_running_worker_groupreturnsNoopDecisionuntil the reservation covers every worker (and satisfies STRICT_PACK/STRICT_SPREAD), then returns aResizeDecisionwith pins from a fresh snapshot. It skips the wait when pinning doesn't apply (TPU, zero-resource workers, userlabel_selector).get_reserved_bundle_label_selectors, its 60s poll loop, the controller fallback and itsWorkerGroupStartupTimeoutErrorraise.ResizeDecision.label_selectors=Nonenow only means "don't pin"._stepnever awaited, so while the policy returnedNoopDecision(elastic waiting formin_workers, and now fixed),run()spun without giving up the event loop and calls likeabort()couldn't reach the controller actor._stepnow sleepsRAY_TRAIN_HEALTH_CHECK_INTERVAL_Sbefore asking again. The newtest_waiting_for_a_scaling_decision_yields_the_event_loophung without this change.Behavior change: a fixed run waiting for capacity no longer fails and retries every 60s through the failure policy. It waits in the controller loop like elastic does, logging every 30s. With the default
controller_failure_limit=-1, the only visible difference is the log messages. A run with a finite limit no longer uses it up while waiting for capacity.Related issues
Part of a stack:
ResizeDecision+ elastic (base of this PR).Testing
All passing locally (macOS,
ray_dev_py311), on the top of the stack:AI assistance (Claude Code) was used to write this change.
🤖 Generated with Claude Code