workflow

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplicationError

func NewApplicationError(message string, details ...interface{}) error

func NewNonRetryableApplicationError

func NewNonRetryableApplicationError(message string, details ...interface{}) error

func ValueCall added in v0.0.72

func ValueCall(ctx jobworkflow.ExecutionContext, site, typ string, policy jobdb.RunPolicy, command any) (jobdb.TaskData, error)

ValueCall is for control tasks whose declared request is already their stable command.

Types

type Context

type Context struct {
	RecipeDigest       string
	CatchStateName     string
	ScopeState         func(*template.ResolutionContext)
	JobPackages        []string
	WorkspaceSnapshots bool
	SuspendExecution   func(jobworkflow.ExecutionContext, string, execution.Requirements) error
	StageNodeExecution func(execution.Requirements)
	JobContext         jobworkflow.ExecutionContext
	ops.ServiceDependencies2
}

func (Context) DoTask added in v0.0.72

func (c Context) DoTask(call jobworkflow.TaskCall, build func(context.Context) (jobdb.TaskData, error)) (jobdb.TaskData, error)

DoTask delegates a logical call without constructing inputs on replay.

func (Context) GetJobId

func (c Context) GetJobId() string

func (Context) GetJobKey added in v0.0.72

func (c Context) GetJobKey() jobdb.JobKey

func (Context) GetLogger

func (c Context) GetLogger() *slog.Logger

type NonRetryableError

type NonRetryableError struct {
	// contains filtered or unexported fields
}

func (NonRetryableError) Error

func (e NonRetryableError) Error() string

func (NonRetryableError) NonRetryable

func (e NonRetryableError) NonRetryable() bool

type RetryableErrror

type RetryableErrror struct {
	// contains filtered or unexported fields
}

func (RetryableErrror) Error

func (e RetryableErrror) Error() string

func (RetryableErrror) NonRetryable

func (e RetryableErrror) NonRetryable() bool

Jump to

Keyboard shortcuts

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