Skip to content

Commit

Permalink
docs: Add comments to NodePhase definition. Closes argoproj#1117. (ar…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreeze committed Jul 15, 2020
1 parent 24d1e52 commit 7a8e2b3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions pkg/apis/workflow/v1alpha1/workflow_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,20 @@ 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"
// Node or child of node exited with non-0 code
NodeFailed NodePhase = "Failed"
// Node had an error other than a non 0 exit code
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
Expand Down

0 comments on commit 7a8e2b3

Please sign in to comment.