Skip to content
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

Add functionality to load scheduler cfg from a json string #933

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

ishachirimar
Copy link
Contributor

Summary:
add a function cfg_from_json_repr() to create scheduler runopts from a json string representation.

currently, there is only cfg_from_str() which takes a string in the format "k=v,k1=v1" (designed for cmd line). however, the runcfg is stored in scuba logs in a json string representation.

so in order to read it back when cloning jobs we need to read from json string.

Differential Revision: D59832084

Summary:
add a function `cfg_from_json_repr()` to create scheduler runopts from a json string representation.

currently, there is only `cfg_from_str()` which takes a string in the format "k=v,k1=v1" (designed for cmd line). however, the runcfg is stored in scuba logs in a json string representation.

so in order to read it back when cloning jobs we need to read from json string.

Differential Revision: D59832084
@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 Jul 17, 2024
@facebook-github-bot
Copy link
Contributor

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

Copy link
Contributor

@andywag andywag left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@facebook-github-bot facebook-github-bot merged commit 7df8ea5 into pytorch:main Jul 17, 2024
23 of 24 checks passed
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.

4 participants