fix: queue properly on internal retry (#891)

This commit is contained in:
abelanger5
2024-09-19 16:11:47 -04:00
committed by GitHub
parent 15c50f46b5
commit d61f37de14
+1 -1
View File
@@ -2295,7 +2295,7 @@ func (s *stepRunEngineRepository) QueueStepRun(ctx context.Context, tenantId, st
}
// if this is not a retry, and the step run is already in a pending assignment state, this is a no-op
if !opts.IsRetry && innerStepRun.SRStatus == dbsqlc.StepRunStatusPENDINGASSIGNMENT {
if !opts.IsRetry && !opts.IsInternalRetry && innerStepRun.SRStatus == dbsqlc.StepRunStatusPENDINGASSIGNMENT {
return nil, repository.ErrAlreadyQueued
}