Skip to content

(torchx/scheduler) Fill hostnames for each replica in slurm scheduler's describe API #1080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

kiukchung
Copy link
Contributor

Summary: Use scontrol to implement the describe API that fills out the hostnames for each replica.

Differential Revision: D76485112

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 12, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 12, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

Copy link
Member

@d4l3k d4l3k left a comment

Choose a reason for hiding this comment

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

LGTM


return DescribeAppResponse(
app_id=app_id,
roles=list(roles.values()),
roles_statuses=list(roles_statuses.values()),
state=app_state,
msg=msg,
Copy link
Member

Choose a reason for hiding this comment

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

msg isn't needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea msg defaults to an empty string if not specified. We were just setting msg=state so no real functional value added + describe_sacct didn't set msg

kiukchung added a commit that referenced this pull request Jun 12, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
facebook-github-bot pushed a commit that referenced this pull request Jun 12, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

kiukchung added a commit that referenced this pull request Jun 12, 2025
…'s describe API (#1080)

Summary:
Pull Request resolved: #1080

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

kiukchung added a commit that referenced this pull request Jun 12, 2025
…'s describe API (#1080)

Summary:
Pull Request resolved: #1080

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

kiukchung added a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:
Pull Request resolved: #1080

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

kiukchung added a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:
Pull Request resolved: #1080

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

kiukchung added a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:
Pull Request resolved: #1080

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

facebook-github-bot pushed a commit that referenced this pull request Jun 13, 2025
…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

…'s describe API (#1080)

Summary:

Additionally fill hostname, resource (cpu, memMB), image, entrypoint in `describe_squeue` for each role/replica.

Reviewed By: d4l3k

Differential Revision: D76485112
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76485112

@facebook-github-bot facebook-github-bot merged commit 34d6b83 into main Jun 13, 2025
22 of 24 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D76485112 branch June 13, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants