Documentation
¶
Index ¶
- func NewParallelOrchestrationStrategy(executor orchestration.OperationExecutor, log logrus.FieldLogger, ...) orchestration.Strategy
- type ParallelOrchestrationStrategy
- func (p *ParallelOrchestrationStrategy) Cancel(executionID string)
- func (p *ParallelOrchestrationStrategy) Execute(operations []orchestration.RuntimeOperation, ...) (string, error)
- func (p *ParallelOrchestrationStrategy) Insert(execID string, operations []orchestration.RuntimeOperation, ...) error
- func (p *ParallelOrchestrationStrategy) SpeedUp(factor int)
- func (p *ParallelOrchestrationStrategy) Wait(executionID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParallelOrchestrationStrategy ¶
func NewParallelOrchestrationStrategy(executor orchestration.OperationExecutor, log logrus.FieldLogger, rescheduleDelay time.Duration) orchestration.Strategy
NewParallelOrchestrationStrategy returns a new parallel orchestration strategy, which executes operations in parallel using a pool of workers and a delaying queue to support time-based scheduling.
Types ¶
type ParallelOrchestrationStrategy ¶
type ParallelOrchestrationStrategy struct {
// contains filtered or unexported fields
}
func (*ParallelOrchestrationStrategy) Cancel ¶
func (p *ParallelOrchestrationStrategy) Cancel(executionID string)
func (*ParallelOrchestrationStrategy) Execute ¶
func (p *ParallelOrchestrationStrategy) Execute(operations []orchestration.RuntimeOperation, strategySpec orchestration.StrategySpec) (string, error)
Execute starts the parallel execution of operations.
func (*ParallelOrchestrationStrategy) Insert ¶
func (p *ParallelOrchestrationStrategy) Insert(execID string, operations []orchestration.RuntimeOperation, strategySpec orchestration.StrategySpec) error
func (*ParallelOrchestrationStrategy) SpeedUp ¶
func (p *ParallelOrchestrationStrategy) SpeedUp(factor int)
func (*ParallelOrchestrationStrategy) Wait ¶
func (p *ParallelOrchestrationStrategy) Wait(executionID string)
Click to show internal directories.
Click to hide internal directories.