-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix!: consolidate cronworkflow variables #13702
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,11 +71,11 @@ type CronWorkflowSpec struct { | |
When string `json:"when,omitempty" protobuf:"bytes,12,opt,name=when"` | ||
} | ||
|
||
// v3.6 and after: StopStrategy defines if the CronWorkflow should stop scheduling based on a condition | ||
// StopStrategy defines if the CronWorkflow should stop scheduling based on an expression. v3.6 and after | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The version annotation being consistently the first thing is intentional so that it is the first thing you see. This change makes this inconsistent with every other version annotation in the codebase, like lines 64-68 above, as well as harder to notice (and we already have trouble with users not noticing versions and so should not increase that). I believe you made this change for GoDoc purposes, which does raise a conundrum since that apparently requires it to start the same way? If it's just a convention, the consistency and visibility should supersede that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did that to make it GoDoc compliant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That does not address my comment (I mentioned that myself in my comment) and, as I wrote above, is inconsistent with the entirety of rest of the code and docs (where this exact comment is user-facing) on version annotation placement |
||
type StopStrategy struct { | ||
// v3.6 and after: Condition is an expression that stops scheduling workflows when true. Use the | ||
// variables `failed` or `succeeded` to access the number of failed or successful child workflows. | ||
Condition string `json:"condition" protobuf:"bytes,1,opt,name=condition"` | ||
// v3.6 and after: Expression is an expression that stops scheduling workflows when true. Use the variables | ||
// `cronworkflow`.`failed` or `cronworkflow`.`succeeded` to access the number of failed or successful child workflows. | ||
Expression string `json:"expression" protobuf:"bytes,1,opt,name=expression"` | ||
} | ||
|
||
// CronWorkflowStatus is the status of a CronWorkflow | ||
|
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.