mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-12 21:28:50 -05:00
fix: queue properly on internal retry (#891)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user