-
Notifications
You must be signed in to change notification settings - Fork 146
Allow empty session name for APIs that take it #1057
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
Conversation
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Differential Revision: D73799333
4944e5f to
43eea72
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Differential Revision: D73799333
43eea72 to
9846f4f
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Pull Request resolved: #1057 Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Differential Revision: D73799333
9846f4f to
b784694
Compare
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
b784694 to
58597d3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Pull Request resolved: #1057 Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
58597d3 to
9863b87
Compare
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
9863b87 to
6e5f6a7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
6e5f6a7 to
428e2cd
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Pull Request resolved: #1057 Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
428e2cd to
1532ba4
Compare
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
1532ba4 to
c318fc3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
c318fc3 to
80a9bc3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Pull Request resolved: #1057 Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
80a9bc3 to
01a2e9a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Pull Request resolved: #1057 Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: highker, daniel-ohayon Differential Revision: D73799333
01a2e9a to
6ae5ba0
Compare
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: mariusae, highker, daniel-ohayon Differential Revision: D73799333
6ae5ba0 to
17ed7c5
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: mariusae, highker, daniel-ohayon Differential Revision: D73799333
17ed7c5 to
355f392
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary: Makes the session name returning and accepting APIs symmetric by allowing empty session names. Today `torchx.runner.Runner()` takes an empty string as `session_name` and returns an `app_handle` with an empty session name (e.g. `local:///app-id`) when the `run()` or `schedule()` methods are called (see the newly added unittest in `torchx/runner/test/api_test.py#test_empty_session_id()`) However runner APIs that accept `app_handle` (e.g. `runner.cancel()`) will error when the session name is empty. This makes the APIs non-symmetric since the `app_handle` returned by `run/schedule` APIs cannot be used. This PR fixes this. Reviewed By: mariusae, highker, daniel-ohayon Differential Revision: D73799333
355f392 to
91e8f3a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D73799333 |
Summary:
Makes the session name returning and accepting APIs symmetric by allowing empty session names.
Today
torchx.runner.Runner()takes an empty string assession_nameand returns anapp_handlewith an empty session name (e.g.local:///app-id) when therun()orschedule()methods are called (see the newly added unittest intorchx/runner/test/api_test.py#test_empty_session_id())However runner APIs that accept
app_handle(e.g.runner.cancel()) will error when the session name is empty. This makes the APIs non-symmetric since theapp_handlereturned byrun/scheduleAPIs cannot be used.This PR fixes this.
Differential Revision: D73799333