strategies

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

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

Execute starts the parallel execution of operations.

func (*ParallelOrchestrationStrategy) Insert

func (*ParallelOrchestrationStrategy) SpeedUp

func (p *ParallelOrchestrationStrategy) SpeedUp(factor int)

func (*ParallelOrchestrationStrategy) Wait

func (p *ParallelOrchestrationStrategy) Wait(executionID string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL