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

update katib laucher #1118

Merged
merged 3 commits into from
Apr 10, 2019
Merged

update katib laucher #1118

merged 3 commits into from
Apr 10, 2019

Conversation

hougangliu
Copy link
Member

@hougangliu hougangliu commented Apr 9, 2019

  1. sync up since katib directory org changed
  2. add option deleteafterdone

This change is Reviewable

1. sync up since katib directory org changed
2. add option deleteafterdone
@hougangliu
Copy link
Member Author

/assign @vicaire

- {name: Request count, type: Integer, default: 1, description: 'Number of requests to the suggestion service.'}
- {name: Metrics names, type: String, description: 'List of metric names (comma-delimited).'}
- {name: Parameter configs, type: YAML, default: '', description: 'Parameter configs (YAML/JSON format).'}
- {name: NAS config, type: YAML, default: '', description: 'NAS config (YAML/JSON format).'}
- {name: Worker template path, type: String, default: '', description: 'Worker spec.'}
- {name: Metrics collector template path, type: String, default: '', description: 'Metrics collector spec.'}
- {name: Suggestion spec, type: YAML, default: '', description: 'Suggestion spec (YAML/JSON format).'}
- {name: StudyJob timeout minutes, type: Integer, default: '10', description: 'Time in minutes to wait for the StudyJob to complete'}
- {name: StudyJob timeout minutes, type: Integer, default: '10', description: 'Time in minutes to wait for the StudyJob to complete.'}
- {name: Delete StudyJob flag, type: String, default: 'True', description: 'When StudyJob done, delete the StudyJob if it is True.'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- {name: Delete StudyJob flag, type: String, default: 'True', description: 'When StudyJob done, delete the StudyJob if it is True.'}
- {name: Delete finished job, type: Boolean, default: 'True', description: 'Whether to delete the job after it's finished.'}

@@ -34,5 +35,6 @@ implementation:
--mcollectortemplatepath, {inputValue: Metrics collector template path},
--suggestionspec, {inputValue: Suggestion spec},
--studyjobtimeoutminutes, {inputValue: StudyJob timeout minutes},
--deleteafterdone, {inputValue: Delete StudyJob flag},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--deleteafterdone, {inputValue: Delete StudyJob flag},
--deleteafterdone, {inputValue: Delete finished job},

@@ -34,6 +34,7 @@ def kubeflow_studyjob_launcher_op(name, namespace, optimizationtype, objectiveva
"--mcollectortemplatepath", mcollectortemplatepath,
"--suggestionspec", suggestionspec,
"--outputfile", output_file,
"--deleteafterdone", delete,
Copy link
Contributor

Choose a reason for hiding this comment

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

delete_finished ?

@@ -39,6 +39,14 @@ def yamlOrJsonStr(str):
def strToList(str):
return str.split(",")

def str2bool(v):
Copy link
Contributor

Choose a reason for hiding this comment

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

from distutils.util import strtobool

@@ -121,6 +129,9 @@ def main(argv=None):
parser.add_argument('--outputfile', type=str,
default='/output.txt',
help='The file which stores the best trial of the studyJob.')
parser.add_argument('--deleteafterdone', type=str2bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

--delete-after-done ?

@Ark-kun Ark-kun self-assigned this Apr 9, 2019
@hougangliu
Copy link
Member Author

@Ark-kun thanks for your comment. Updated

@Ark-kun
Copy link
Contributor

Ark-kun commented Apr 10, 2019

@Ark-kun thanks for your comment. Updated

Can you please quote 'True' and improve the description: #1118 (comment)

@hougangliu
Copy link
Member Author

Can you please quote 'True' and improve the description: #1118 (comment)

sorry, miss the comment. Updated now. Thanks

@Ark-kun
Copy link
Contributor

Ark-kun commented Apr 10, 2019

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 39378a6 into kubeflow:master Apr 10, 2019
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants