Documentation
¶
Index ¶
- type ParallelCompilationService
- type ParallelExecutionOrchestratorImpl
- func (o *ParallelExecutionOrchestratorImpl) ConfigureConcurrency(maxWorkers int) error
- func (o *ParallelExecutionOrchestratorImpl) ConfigureTimeout(timeout time.Duration) error
- func (o *ParallelExecutionOrchestratorImpl) ExecuteParallel(ctx context.Context, tasks []parallel.CompilationTask) (*parallel.ParallelCompilationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParallelCompilationService ¶
type ParallelCompilationService struct {
// contains filtered or unexported fields
}
ParallelCompilationService implements the ParallelCompiler interface
func NewParallelCompilationService ¶
func NewParallelCompilationService( orchestrator parallel.ParallelExecutionOrchestrator, resultCollector parallel.CompilationResultCollector, strategies []parallel.CompilationStrategy, ) *ParallelCompilationService
NewParallelCompilationService creates a new parallel compilation service
func (*ParallelCompilationService) CompileTemplates ¶
func (p *ParallelCompilationService) CompileTemplates( ctx context.Context, request parallel.ParallelCompilationRequest, ) (*parallel.ParallelCompilationResult, error)
CompileTemplates compiles multiple templates in parallel
type ParallelExecutionOrchestratorImpl ¶
type ParallelExecutionOrchestratorImpl struct {
// contains filtered or unexported fields
}
ParallelExecutionOrchestratorImpl implements the ParallelExecutionOrchestrator interface
func NewParallelExecutionOrchestrator ¶
func NewParallelExecutionOrchestrator() *ParallelExecutionOrchestratorImpl
NewParallelExecutionOrchestrator creates a new parallel execution orchestrator
func (*ParallelExecutionOrchestratorImpl) ConfigureConcurrency ¶
func (o *ParallelExecutionOrchestratorImpl) ConfigureConcurrency(maxWorkers int) error
ConfigureConcurrency sets the maximum number of concurrent workers
func (*ParallelExecutionOrchestratorImpl) ConfigureTimeout ¶
func (o *ParallelExecutionOrchestratorImpl) ConfigureTimeout(timeout time.Duration) error
ConfigureTimeout sets the timeout for individual tasks
func (*ParallelExecutionOrchestratorImpl) ExecuteParallel ¶
func (o *ParallelExecutionOrchestratorImpl) ExecuteParallel( ctx context.Context, tasks []parallel.CompilationTask, ) (*parallel.ParallelCompilationResult, error)
ExecuteParallel executes tasks in parallel