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{}/* 105 elements not displayed */
Functions ¶
This section is empty.
Types ¶
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 Config ¶
type Config map[scheduler.TaskInstanceType]Operator
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
}
type NoOpOperator ¶
type NoOpOperator struct{}
func (NoOpOperator) Run ¶
func (e NoOpOperator) Run(ctx context.Context, ti scheduler.TaskInstance) error
type Operator ¶
type Operator interface {
Run(ctx context.Context, ti scheduler.TaskInstance) error
}
type OperatorMap ¶
type Sequential ¶
func (Sequential) RunSingleTask ¶
func (s Sequential) RunSingleTask(ctx context.Context, instance scheduler.TaskInstance) error
Click to show internal directories.
Click to hide internal directories.