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
docs: Add comments to NodePhase definition. Closes #1117. #3467
Merged
Merged
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6f430d3
Start adding comments
rbreeze 228629e
Finish adding comments to NodePhase definition. First draft
rbreeze 66321ef
Update docstring for NodePhase
rbreeze 7662b76
Merge branch 'master' into nodephase-docs
rbreeze 5c0011f
linted
rbreeze d3eadad
Merge branch 'master' into nodephase-docs
rbreeze f32e8c5
Merge branch 'master' into nodephase-docs
rbreeze 1776638
Update pkg/apis/workflow/v1alpha1/workflow_types.go
rbreeze 683ffd6
Update pkg/apis/workflow/v1alpha1/workflow_types.go
rbreeze 47e9028
Update pkg/apis/workflow/v1alpha1/workflow_types.go
rbreeze f231130
Update pkg/apis/workflow/v1alpha1/workflow_types.go
rbreeze 1563a72
Merge branch 'nodephase-docs' of github.com:rbreeze/argo into nodepha…
rbreeze 8212d26
Make NodeFailed description more clear
rbreeze 4f2ae2c
Simplify node phase comments
rbreeze 1484bb5
Merge branch 'master' into nodephase-docs
rbreeze 9421214
Merge branch 'master' into nodephase-docs
rbreeze 76f4c86
Merge branch 'nodephase-docs' of github.com:rbreeze/argo into nodepha…
rbreeze File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,13 +35,22 @@ type NodePhase string | |
|
||
// Workflow and node statuses | ||
const ( | ||
NodePending NodePhase = "Pending" | ||
NodeRunning NodePhase = "Running" | ||
// Node is waiting to run | ||
NodePending NodePhase = "Pending" | ||
// Node is running | ||
NodeRunning NodePhase = "Running" | ||
// Node finished with no errors | ||
NodeSucceeded NodePhase = "Succeeded" | ||
NodeSkipped NodePhase = "Skipped" | ||
NodeFailed NodePhase = "Failed" | ||
NodeError NodePhase = "Error" | ||
NodeOmitted NodePhase = "Omitted" | ||
// Node was skipped | ||
NodeSkipped NodePhase = "Skipped" | ||
// There was an error within the container. E.g. the container exits with a non 0 code | ||
// a WF with a failed Node will be marked with NodeFailed as well | ||
NodeFailed NodePhase = "Failed" | ||
// Node had an error other than a non 0 exit code. E.g. The pod was deleted, couldn’t be scheduled, or there were problems getting logs | ||
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.
This doesn't look addressed |
||
// a WF with an errored Node will be marked with NodeError as well | ||
NodeError NodePhase = "Error" | ||
// Node was omitted because its `depends` condition was not met (only relevant in DAGs) | ||
NodeOmitted NodePhase = "Omitted" | ||
) | ||
|
||
// NodeType is the type of a node | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's not standard to put a docstring below its definition. If it doesn't fit on the same line then all of the docstrings for this type should be above their definitions
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.
I would simply say "Node or child of node exited with non-0 code"
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.
This doesn't look addressed