Documentation
¶
Index ¶
- type DAGStoreFactory
- type DAGStoreFactoryOptions
- type DistributedOptions
- type Engine
- func (e *Engine) Close(ctx context.Context) error
- func (e *Engine) NewWorker(opts WorkerOptions) (*Worker, error)
- func (e *Engine) Outputs(ctx context.Context, ref RunRef) (map[string]string, error)
- func (e *Engine) RunFile(ctx context.Context, path string, opts RunOptions) (*Run, error)
- func (e *Engine) RunYAML(ctx context.Context, data []byte, opts RunOptions) (*Run, error)
- func (e *Engine) Status(ctx context.Context, ref RunRef) (*Status, error)
- func (e *Engine) Stop(ctx context.Context, ref RunRef) error
- type ExecutionMode
- type Options
- type Persistence
- type PersistenceFactory
- type Run
- func (r *Run) ID() string
- func (r *Run) Name() string
- func (r *Run) Outputs(ctx context.Context) (map[string]string, error)
- func (r *Run) Ref() RunRef
- func (r *Run) Status(ctx context.Context) (*Status, error)
- func (r *Run) Stop(ctx context.Context) error
- func (r *Run) Wait(ctx context.Context) (*Status, error)
- type RunOptions
- type RunRef
- type RuntimeStores
- type RuntimeStoresFactory
- type Status
- type TLSOptions
- type Worker
- type WorkerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAGStoreFactory ¶
type DAGStoreFactory func(context.Context, *config.Config, DAGStoreFactoryOptions) (exec.DAGStore, error)
DAGStoreFactory creates DAG stores needed by execution-scoped loaders.
type DAGStoreFactoryOptions ¶
type DAGStoreFactoryOptions struct {
SearchPaths []string
}
DAGStoreFactoryOptions configures a backend-specific DAG definition store.
type DistributedOptions ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
type ExecutionMode ¶
type ExecutionMode string
const ( ExecutionModeLocal ExecutionMode = "local" ExecutionModeDistributed ExecutionMode = "distributed" )
type Options ¶
type Options struct {
HomeDir string
ConfigFile string
DAGsDir string
DataDir string
LogDir string
ArtifactDir string
BaseConfig string
Logger *slog.Logger
Persistence Persistence
PersistenceFactory PersistenceFactory
RunStateStore runstate.Store
DAGRunStore coreexec.DAGRunStore
DefaultMode ExecutionMode
Distributed *DistributedOptions
}
type Persistence ¶
type Persistence struct {
DAGStore exec.DAGStore
DAGRunStore exec.DAGRunStore
RunStateStore runstate.Store
ProcStore exec.ProcStore
StateStore dagstate.Store
ServiceRegistry exec.ServiceRegistry
DAGStoreFactory DAGStoreFactory
RuntimeStoresFactory RuntimeStoresFactory
}
Persistence contains the storage dependencies required by Engine.
type PersistenceFactory ¶
PersistenceFactory wires backend-specific stores after configuration is loaded.
type RunOptions ¶
type RuntimeStores ¶
RuntimeStores contains the stores used by workflow execution.
type RuntimeStoresFactory ¶
type RuntimeStoresFactory func(context.Context, *config.Config) RuntimeStores
RuntimeStoresFactory creates stores for local workflow execution.
type TLSOptions ¶
type WorkerOptions ¶
Click to show internal directories.
Click to hide internal directories.