Documentation
¶
Overview ¶
Package workflow runs DAGs of cron.Jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ConfigError ¶
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
func (*ConfigError) Unwrap ¶
func (e *ConfigError) Unwrap() error
type Workflow ¶
type Workflow struct {
// contains filtered or unexported fields
}
Workflow is a DAG of Steps.
func New ¶
New constructs a Workflow. It copies Step.Deps and returns *ConfigError for duplicate steps, unknown dependencies, or cycles.
func (*Workflow) WithOnComplete ¶
WithOnComplete returns a shallow copy with cb installed. cb runs before Run returns.
Click to show internal directories.
Click to hide internal directories.