Unify ready pipeline jobs under one worker pool and remove the global LLM scheduler

This commit is contained in:
2026-11-22 01:45:31 +00:00
parent b47208bd57
commit 9a527b77c4
24 changed files with 496 additions and 1160 deletions

View File

@@ -33,6 +33,9 @@ type Registries struct {
type Runner struct{}
// DefaultWorkers is the shared ready-job limit when the caller omits one.
const DefaultWorkers = 64
func New() *Runner {
return &Runner{}
}
@@ -55,9 +58,9 @@ type RunInput struct {
Checkpoint CheckpointLoader
CheckpointPolicy CheckpointExecutionPolicy
Debug DebugRecorder
// ExtractWorkers bounds run-wide extract jobs. Values less than one use a
// single worker so direct framework callers retain deterministic behavior.
ExtractWorkers int
// Workers bounds ready extraction and lane-completion jobs together.
// Zero selects DefaultWorkers; configuration rejects explicit zero.
Workers int
pipeline ResolvedPipeline
// reuseIneligible carries chunk ancestry; reference eligibility stays scoped.
@@ -468,6 +471,9 @@ func resolvedValidatorChain(stage ModuleStage, laneID string, moduleKey string,
}
func validateRunInput(input RunInput) error {
if input.Workers < 0 {
return fmt.Errorf("workers must be positive when specified")
}
if input.Prepared == nil {
return fmt.Errorf("prepared pipeline must not be nil")
}