executor

package
v0.0.0-...-6f0bcb7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string
	From string
	//Handlers
	VertexFuntionRunFn VertexFuntionRunFn
	ExecPostRunFn      ExecPostRunFn
}

type ExecPostRunFn

type ExecPostRunFn func(start, finish time.Time, success bool)

type Executor

type Executor interface {
	Run(ctx context.Context)
}

func New

func New(d dag.DAG, cfg *Config) Executor

type VertexFuntionRunFn

type VertexFuntionRunFn func(ctx context.Context, vertexName string, vertexContext any) 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