executor

package
v0.0.0-...-8789a92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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

New returns a Workflow Executor implementation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL