Skip to content

Commit 542637d

Browse files
committed
controller: treat missing semaphore as unlimited
Signed-off-by: sduvvuri1603 <[email protected]>
1 parent fb03c0f commit 542637d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backend/src/crd/controller/scheduledworkflow/controller.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ func (c *Controller) extractMaxActiveRunsFromWorkflow(ctx context.Context, workf
623623
workflow.ExecutionObjectMeta().Annotations[commonutil.AnnotationKeyPipelineVersionID] = id
624624
}
625625
if workflow.Spec.Synchronization == nil {
626-
return 0, fmt.Errorf("workflow missing synchronization block; cannot derive max_active_runs")
626+
// No concurrency limit configured; nothing to enforce.
627+
return 0, nil
627628
}
628629

629630
var pipelineVersionID string
@@ -642,7 +643,8 @@ func (c *Controller) extractMaxActiveRunsFromWorkflow(ctx context.Context, workf
642643
}
643644

644645
if pipelineVersionID == "" {
645-
return 0, fmt.Errorf("no pipeline version ID found in workflow synchronization semaphores")
646+
// The workflow does not reference the parallelism semaphore; no limit applies.
647+
return 0, nil
646648
}
647649

648650
if c.pipelineClient == nil || pipelineID == "" {

0 commit comments

Comments
 (0)