-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(sdk): add retry policy support to kfp v2 #7867
feat(sdk): add retry policy support to kfp v2 #7867
Conversation
Skipping CI for Draft Pull Request. |
6b4b62e
to
e28dd1a
Compare
/test all |
e28dd1a
to
64b026d
Compare
c0b1aa3
to
6f39253
Compare
num_retries: int, | ||
backoff_duration: Optional[str] = None, | ||
backoff_factor: Optional[float] = None, | ||
backoff_max_duration: Optional[str] = None) -> 'PipelineTask': |
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.
Note: A policy
parameter was included in the v1 ContainerOp.set_retry
method. policy
is specific to the Argo workflow spec and not included in the IR RetryPolicy
message.
Should we add here, but raise a DeprecationWarning
indicating that policy
is a no-op? Or omit this parameter in v2 as a small breaking change?
cc: @chensun
6f39253
to
e4dc3d2
Compare
/retest |
3 similar comments
/retest |
/retest |
/retest |
e4dc3d2
to
c583250
Compare
/retest |
4 similar comments
/retest |
/retest |
/retest |
/retest |
c583250
to
4105908
Compare
sdk/RELEASE.md
Outdated
@@ -4,7 +4,8 @@ | |||
|
|||
## Breaking Changes | |||
|
|||
### For Pipeline Authors | |||
### For Pipeline Authors] |
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.
nit: extra ]
|
||
hello_world(text=text).set_retry( | ||
num_retries=3, | ||
backoff_duration='30s', |
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.
As discussed, remove the parameters that don't work on Vertex.
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.
on a second look, it's fine to keep this as-is, as long as the samples under test_data/pipelines
doesn't show these no-op usage.
/retest |
/retest |
/test all |
583677a
to
bd76c4d
Compare
/retest |
/lgtm |
@connor-mccarthy: you cannot LGTM your own PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@chensun, can you re-LGTM after rebase and one-character cleanup commit? |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun 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 |
/retest |
Description of your changes:
Adds retry policy support to KFP v2 SDK.
Checklist:
convention. Learn more about the pull request title convention used in this repository.