Skip to content

fix(ray.sub): revalidate log dir before sentinel existence checks - #4004

Open
pulkitkumar95 wants to merge 1 commit into
NVIDIA-NeMo:super-v3.5-posttrainingfrom
pulkitkumar95:pulkitk/ray-worker-sentinel-revalidation
Open

pulkitkumar95 wants to merge 1 commit into
NVIDIA-NeMo:super-v3.5-posttrainingfrom
pulkitkumar95:pulkitk/ray-worker-sentinel-revalidation

Conversation

@pulkitkumar95

Copy link
Copy Markdown

What does this PR do ?

Prevents multi-node job startup failures caused by workers reading a stale negative dentry for the STARTED_RAY_HEAD sentinel on shared filesystems.

Issues

Workers poll [[ -f $LOG_DIR/STARTED_RAY_HEAD ]]; a stale negative dentry can hide the file for many minutes after the head creates it. Observed on a 32-node run: only 52/128 worker units joined while the sentinel had existed for 8+ minutes, and the startup deadline killed three consecutive job-array windows the same way.

Usage

No user-facing change — ls "$LOG_DIR" before the existence checks in the worker wait loop forces readdir revalidation.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally?
  • Did you add or update any necessary documentation?

Additional Information

Same 32-node job array: startup previously failed 3/3 windows after the first; with this fix all subsequent windows started cleanly and resumed training.

Workers poll [[ -f STARTED_RAY_HEAD ]] on the shared filesystem; a stale
negative dentry can hide the file for many minutes after the head creates
it. Observed on a 32-node run: 52/128 worker units joined while the file
existed for 8+ minutes, and the startup deadline killed three consecutive
job windows. readdir on the log dir forces revalidation before the checks.
@pulkitkumar95
pulkitkumar95 requested a review from a team as a code owner September 4, 2026 22:25
@copy-pr-bot

copy-pr-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@pulkitkumar95

pulkitkumar95 commented Sep 4, 2026 •

Copy link
Copy Markdown
Author

/ok to test c080856

@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Sep 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-request waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants