executor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0, BSD-3-Clause 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