-
Notifications
You must be signed in to change notification settings - Fork 716
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 more APIs for TFJob done #1116
Conversation
Hey @jinchihe, TravisBuddy Request Identifier: f7ebde60-1fea-11ea-ba47-7f442aed9c1e |
Hey @jinchihe, TravisBuddy Request Identifier: e8a337b0-2098-11ea-830b-038034041c48 |
Hey @jinchihe, TravisBuddy Request Identifier: 67b92220-209a-11ea-830b-038034041c48 |
Hey @jinchihe, TravisBuddy Request Identifier: 25ada500-209e-11ea-830b-038034041c48 |
Hey @jinchihe, TravisBuddy Request Identifier: acedae30-20a2-11ea-830b-038034041c48 |
Hey @jinchihe, TravisBuddy Request Identifier: b4826360-20a8-11ea-830b-038034041c48 |
/retest |
Hey @jinchihe, TravisBuddy Request Identifier: fc17bd30-213c-11ea-a044-67124c782b74 |
/retest |
/cc @gaocegege @johnugeorge |
|
||
Args: | ||
name: The TFJob name. | ||
namespace: defaults to current or default namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
current or default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ce! Yes, will get the current namespace if running in the cluster from /var/run/secrets/kubernetes.io/serviceaccount/namespace
, otherwise will get the default namespace. please see below for the logic, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM.
@jinchihe Generally LGTM |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge 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 |
Thanks @gaocegege and @johnugeorge |
From feedback of the
kubeflow-tfjob
SDK, add more APIs (some of them are ehanced frompy/kubeflow/tf_operator/tf_job_client.py
):wait_for_job
: Wait for the specified job to finishwait_for_condition
: Waits until any of the specified conditions occurget_job_status
: Quick way to get the TFJob statusif_job_running
: Quick way to check if the TFJob runningif_job_succeeded
: Quick way to check if the TFJob SucceededThis change is