Skip to content

(torchx/runner) Add runner API to parse scheduler config from string literal #1096

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ethanbwaite
Copy link
Contributor

Summary:
Adds cfg_from_str to the runner API to parse scheduler config options from string literals so this logic doesn't need to be duplicated across usecases.

Also updates CLI exit message with the full InvalidRunConfigException reason string, and fixes a dead link.

Differential Revision: D79937463

@meta-cla meta-cla 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 Aug 12, 2025
@facebook-github-bot
Copy link
Contributor

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

@ethanbwaite ethanbwaite requested a review from kiukchung August 12, 2025 15:40
ethanbwaite added a commit that referenced this pull request Aug 12, 2025
…literal (#1096)

Summary:

Adds `cfg_from_str` to the runner API to parse scheduler config options from string literals so this logic doesn't need to be duplicated across usecases.

Also updates CLI exit message with the full `InvalidRunConfigException` reason string, and fixes a dead link.

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

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

ethanbwaite added a commit that referenced this pull request Aug 12, 2025
…literal (#1096)

Summary:
Pull Request resolved: #1096

Adds `cfg_from_str` to the runner API to parse scheduler config options from string literals so this logic doesn't need to be duplicated across usecases.

Also updates CLI exit message with the full `InvalidRunConfigException` reason string, and fixes a dead link.

Differential Revision: D79937463
Summary: Adds from_str methods to help parse enums from string literals

Differential Revision: D79773872
ethanbwaite added a commit that referenced this pull request Aug 13, 2025
…literal (#1096)

Summary:

Adds `cfg_from_str` to the runner API to parse scheduler config options from string literals so this logic doesn't need to be duplicated across usecases.

Also updates CLI exit message with the full `InvalidRunConfigException` reason string, and fixes a dead link.

Differential Revision: D79937463
…literal (#1096)

Summary:
Pull Request resolved: #1096

Adds `cfg_from_str` to the runner API to parse scheduler config options from string literals so this logic doesn't need to be duplicated across usecases.

Also updates CLI exit message with the full `InvalidRunConfigException` reason string, and fixes a dead link.

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

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

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.

2 participants