Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DisableRecorder optimize workflow by disable recorder DisableRecorder = false // StepStatusCache cache the step status StepStatusCache sync.Map )
Functions ¶
func InitializeWorkflowInstance ¶
func InitializeWorkflowInstance(instance *types.WorkflowInstance)
InitializeWorkflowInstance init workflow instance
Types ¶
type WorkflowExecutor ¶
type WorkflowExecutor interface { // ExecuteSteps executes the steps ExecuteRunners(ctx monitorContext.Context, taskRunners []types.TaskRunner) (state v1alpha1.WorkflowRunPhase, err error) // GetBackoffWaitTime returns the wait time for next retry. GetBackoffWaitTime() time.Duration GetSuspendBackoffWaitTime() time.Duration }
WorkflowExecutor is used to execute the workflow steps
func New ¶
func New(instance *types.WorkflowInstance, cli client.Client, patcher types.StatusPatcher) WorkflowExecutor
New returns a Workflow Executor implementation.
Click to show internal directories.
Click to hide internal directories.