Help us shape the future of Go! Take the 2026 Go Developer Survey

executor

package
v0.11.796 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeyPrinter contextKey = iota
	KeyIsDebug contextKey = iota
	KeyVerbose contextKey = iota
	ContextLogger
)

Variables

View Source
var DefaultExecutorsV2 = map[pipeline.AssetType]Config{}/* 132 elements not displayed */

Functions

func IsDebugMode added in v0.11.615

func IsDebugMode(ctx context.Context) bool

IsDebugMode reports whether the context carries a KeyIsDebug *bool set to true. Safe against missing, wrong-typed, or nil-pointer values.

Types

type AssetTimeoutError added in v0.11.682

type AssetTimeoutError struct {
	AssetName string
	Timeout   time.Duration
}

AssetTimeoutError reports that an asset exceeded its configured timeout.

func (*AssetTimeoutError) Error added in v0.11.682

func (e *AssetTimeoutError) Error() string

func (*AssetTimeoutError) Unwrap added in v0.11.682

func (e *AssetTimeoutError) Unwrap() error

type Concurrent

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

func NewConcurrent

func NewConcurrent(
	logger logger.Logger,
	taskTypeMap map[pipeline.AssetType]Config,
	workerCount int, formatOpts FormattingOptions,
) (*Concurrent, error)

func (Concurrent) Start

func (c Concurrent) Start(ctx context.Context, input chan scheduler.TaskInstance, result chan<- *scheduler.TaskExecutionResult)

type FormattingOptions added in v0.11.176

type FormattingOptions struct {
	DoNotLogTimestamp bool
	DoNotLogTaskName  bool
	NoColor           bool
	MinimalLogs       bool
	TUIMode           bool                                               // suppress Running/Finished lines; TUI handles display
	LogOnlyWriter     io.Writer                                          // in TUI mode, worker output goes here (log file) instead of os.Stdout
	OnTaskStart       func(scheduler.TaskInstance)                       // called when worker begins executing a task
	OnTaskEnd         func(scheduler.TaskInstance, error, time.Duration) // called when worker finishes a task

	// InteractivePythonLogs passes child process stdout/stderr through verbatim
	// (preserving carriage returns, without the timestamp/task-name/">> " prefix)
	// so progress bars like tqdm can update in place. Only safe for a single
	// sequential worker writing to a real terminal.
	InteractivePythonLogs bool
}

type NoOpOperator

type NoOpOperator struct{}

func (NoOpOperator) Run

type Operator

type Operator interface {
	Run(ctx context.Context, ti scheduler.TaskInstance) error
}

type OperatorMap

type OperatorMap map[pipeline.AssetType]Operator

type Sequential

type Sequential struct {
	TaskTypeMap map[pipeline.AssetType]Config
}

func (Sequential) RunSingleTask

func (s Sequential) RunSingleTask(ctx context.Context, instance scheduler.TaskInstance) error

Jump to

Keyboard shortcuts

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