Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyPrinter contextKey = iota KeyIsDebug contextKey = iota ContextLogger )
Variables ¶
View Source
var DefaultExecutorsV2 = map[pipeline.AssetType]Config{ pipeline.AssetTypeBigqueryQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, }, pipeline.AssetTypeBigqueryTableSensor: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeBigqueryQuerySensor: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "bq.cost_tracker": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "bq.transfer": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "bq.sensor.partition": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "gcs.from.s3": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "gcs.delete": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "gcs.sensor.object_sensor_with_prefix": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "gcs.sensor.object": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "dbt": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "dbt.test": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeEmpty: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeMetadataPush: NoOpOperator{}, }, pipeline.AssetTypePostgresQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeRedshiftQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeMsSQLQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeDatabricksQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeAthenaQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeAthenaSQLSensor: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeDuckDBQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypeSynapseQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, scheduler.TaskInstanceTypeCustomCheck: NoOpOperator{}, }, pipeline.AssetTypePython: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, scheduler.TaskInstanceTypeColumnCheck: NoOpOperator{}, }, "python.beta": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "python.legacy": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "s3.sensor.key_sensor": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeSnowflakeQuery: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeSnowflakeQuerySensor: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, "appsflyer.export.bq": { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeIngestr: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, pipeline.AssetTypeTableau: { scheduler.TaskInstanceTypeMain: NoOpOperator{}, }, }
Functions ¶
This section is empty.
Types ¶
type Concurrent ¶
type Concurrent struct {
// contains filtered or unexported fields
}
func NewConcurrent ¶
func NewConcurrent( logger *zap.SugaredLogger, taskTypeMap map[pipeline.AssetType]Config, workerCount int, ) (*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 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.