runtime

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is the single workflow runtime assembly entrypoint.

func NewBuilder

func NewBuilder(checkpointMgr workflow.CheckpointManager, logger *zap.Logger) *Builder

NewBuilder creates a workflow runtime builder with the default surface: DAG executor + facade + DSL parser.

func (*Builder) Build

func (b *Builder) Build() *Runtime

Build assembles the workflow runtime surface once.

func (*Builder) WithCircuitBreaker

func (b *Builder) WithCircuitBreaker(
	config workflow.CircuitBreakerConfig,
	handler workflow.CircuitBreakerEventHandler,
) *Builder

WithCircuitBreaker configures circuit breaker behavior for the executor.

func (*Builder) WithDSLParser

func (b *Builder) WithDSLParser(enabled bool) *Builder

WithDSLParser toggles whether Build should provision a DSL parser.

func (*Builder) WithHistoryStore

func (b *Builder) WithHistoryStore(store *workflow.ExecutionHistoryStore) *Builder

WithHistoryStore overrides the executor history store.

func (*Builder) WithStepDependencies

func (b *Builder) WithStepDependencies(deps engine.StepDependencies) *Builder

WithStepDependencies shares engine-backed step dependencies with the DSL parser.

type Runtime

type Runtime struct {
	Executor *workflow.DAGExecutor
	Facade   *workflow.Facade
	Parser   *dsl.Parser
}

Runtime bundles the workflow runtime surface that callers should wire once and then reuse across DAG execution and optional DSL parsing.

Jump to

Keyboard shortcuts

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