executor

package
v0.0.57 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentRequiredError added in v0.0.52

type EnvironmentRequiredError struct{ Handoff compiler.ExecutionHandoff }

EnvironmentRequiredError reports that a disposable standalone runtime cannot migrate itself. Durable production execution should use a persistent runtime.

func (*EnvironmentRequiredError) Error added in v0.0.52

func (e *EnvironmentRequiredError) Error() string

type StandaloneExecutor

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

func NewStandaloneExecutor

func NewStandaloneExecutor(deps ops2.ServiceDependencies2, registry *ops.ActivityRegistry, logger *zap.Logger, allocations ...execution.Allocation) (*StandaloneExecutor, error)

NewStandaloneExecutor creates a new standalone recipe executor

func (*StandaloneExecutor) Execute

func (e *StandaloneExecutor) Execute(
	ctx context.Context,
	r recipe.Recipe,
	inputs map[string]interface{},
	jobCtx contextual.JobContext,
	gitRef string,
) (map[string]interface{}, error)

Execute runs a recipe with the given inputs

func (*StandaloneExecutor) ExecuteWithRegistry

func (e *StandaloneExecutor) ExecuteWithRegistry(
	ctx context.Context,
	r recipe.Recipe,
	inputs map[string]interface{},
	jobCtx contextual.JobContext,
	gitRef string,
	registry workflow.RecipeProjectProvider,
) (map[string]interface{}, error)

ExecuteWithRegistry runs a recipe with a custom registry for resolving recipe references.

func (*StandaloneExecutor) GetActivityRegistry

func (e *StandaloneExecutor) GetActivityRegistry() *ops.ActivityRegistry

GetActivityRegistry returns the activity registry

Jump to

Keyboard shortcuts

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