Closed jinchihe closed 4 years ago
/cc @gaocegege @johnugeorge Could you please take a look? Thanks a lot!
Thanks for your contribution! :tada: :+1:
Great.
Do you think, if is_job_running
makes more sense than if_job_running
? Similarly for if_job_succeeded
?
@johnugeorge Great comments. Agree with you, is_job_running
better than if_job_running
, I'm going to update, and I'm also going to update TFJob side. Thanks!
@johnugeorge Updated, Thanks.
/retest
@jinchihe Can you please update the PR comment too to reflect the new function names - https://github.com/kubeflow/pytorch-operator/pull/240#issue-354018739
@jinchihe Can you please update the PR comment too to reflect the new function names - #240 (comment)
Updated, thanks!
Thanks @jinchihe /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
/lgtm
From feedback, as done for the
kubeflow-tfjob
SDK, add more APIs forkubeflow-pytorchjob
: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 PyTorchJob statusis_job_running
: Quick way to check if the PyTorchJob status is Runningis_job_succeeded
: Quick way to check if the PyTorchJob status is Succeeded