executor

package
v0.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config[T any] struct {
	Name    string
	From    string
	Handler ExecHandler[T]
}

type DAGExecutor

type DAGExecutor interface {
	Run(ctx context.Context) bool
}

func NewDAGExecutor

func NewDAGExecutor[T any](ctx context.Context, d dag.DAG[T], cfg *Config[T]) (DAGExecutor, error)

type ExecHandler

type ExecHandler[T any] interface {
	BlockRun(ctx context.Context, vertexName string, vertexContext T) bool
	PostRun(ctx context.Context, start, finish time.Time, success bool)
}

type VertexResult

type VertexResult struct {
	Start   time.Time
	Finish  time.Time
	Success bool
	Reason  string
	Input   any
	Output  any
}

Jump to

Keyboard shortcuts

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