workflow

package
v1.0.80 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWorkflowService

func InitWorkflowService()

func ProcessWorkflow

func ProcessWorkflow(workflow *v2.WorkflowSchema) error

func ProcessWorkflows

func ProcessWorkflows() error

func RegisterWorkflowAction

func RegisterWorkflowAction(name string, handler v2.IWorkflowAction)

func ShutdownWorkflowService

func ShutdownWorkflowService() error

func ValidateStatus

func ValidateStatus(obj *v2.WorkflowSchema)

Types

type AgentTaskAction added in v1.0.79

type AgentTaskAction struct{}

func (AgentTaskAction) Execute added in v1.0.79

func (a AgentTaskAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema, wctx v2.WorkflowContext) error

Execute enqueues the task on first run, then polls it to a terminal status.

Storing TaskID on the action is what makes a step re-run idempotent: without it, every pass through this function appended a fresh task. The dedupe key is the backstop for the window where the id is lost before it is persisted.

type CreateAgentAction

type CreateAgentAction struct{}

func (CreateAgentAction) Execute

func (a CreateAgentAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema, _ v2.WorkflowContext) error

type WaitForOnlineAction

type WaitForOnlineAction struct{}

func (WaitForOnlineAction) Execute

func (a WaitForOnlineAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema, _ v2.WorkflowContext) error

Jump to

Keyboard shortcuts

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