-
Notifications
You must be signed in to change notification settings - Fork 86
feat: add maxRetry option #145
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
base: master
Are you sure you want to change the base?
feat: add maxRetry option #145
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
c194290
to
46bf673
Compare
291789f
to
08fef71
Compare
It doesn't look good. How about just adding a maxRetry field? |
type Flow struct {
// +kubebuilder:validation:MinLength=1
// +required
Name string `json:"name"`
// +optional
DependsOn *DependsOn `json:"dependsOn,omitempty"`
// +optional
MaxRetry *MaxRetry `json:"maxRetry,omitempty"`
} |
Signed-off-by: dongjiang <[email protected]>
cebc0eb
to
615f915
Compare
Thanks @hwdef @googs1025 |
@googs1025 Please re-check it |
feel free to go ahead. |
@hwdef @Monokaix @JesseStutler /PTAL |
/lgtm |
cc @googs1025 @Monokaix |
@Monokaix Please review it. Thanks |
@@ -44,6 +44,12 @@ type Flow struct { | |||
Name string `json:"name"` | |||
// +optional | |||
DependsOn *DependsOn `json:"dependsOn,omitempty"` | |||
// Defaults to 1. |
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.
Why not 3 and be consistent with vc job's default value?
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 @Monokaix
Got it
Default setting 3
Yeah I agree, comments should be added, and will this value be passed to the maxretry of vcjob? |
Yeah. Pass this value to the maxretry of vcjob, replace the default value in jobTemplate |
Signed-off-by: dongjiang <[email protected]>
New changes are detected. LGTM label has been removed. |
ref: volcano-sh/volcano#3846