Skip to content

Commit

Permalink
Add missing v1alpha2 Workflow states
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Nov 14, 2023
1 parent 7f417ed commit 2bcca15
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions api/v1alpha2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,28 @@ type ActionStatus struct {
type WorkflowState string

const (
// WorkflowStatePending indicates the workflow is in a pending state.
// WorkflowStatePending indicates the Workflow is awaiting dispatch to the agent.
WorkflowStatePending WorkflowState = "Pending"

// WorkflowStateRunning indicates the first Action has been requested and the Workflow is in
// progress.
// WorkflowStateScheduled indicates the Workflow has been dispatched to the agent but the agent
// is yet to report the Workflow has started.
WorkflowStateScheduled WorkflowState = "Scheduled"

// WorkflowStateRunning indicates the Workflow has begun executing.
WorkflowStateRunning WorkflowState = "Running"

// WorkflowStateSucceeded indicates all Workflow actions have successfully completed.
// WorkflowStateCancelling indicates the agent has been instructed to cancel the Workflow, but
// the cancellation is yet to be completed.
WorkflowStateCancelling WorkflowState = "Cancelling"

// WorkflowStateSucceeded indicates all Actions have successfully completed.
WorkflowStateSucceeded WorkflowState = "Succeeded"

// WorkflowStateFailed indicates an Action entered a failure state.
// WorkflowStateFailed indicates an Action failed.
WorkflowStateFailed WorkflowState = "Failed"

// WorkflowStateCanceled indicates the Workflow has been canceled.
WorkflowStateCanceled WorkflowState = "Canceled"
)

// ActionState describes a point in time state of an Action.
Expand Down

0 comments on commit 2bcca15

Please sign in to comment.