Skip to content

Commit 023e6e2

Browse files
committed
use shouldBlock instead of status checking
1 parent 02dc4fa commit 023e6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/actions/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func rerunJob(ctx *context_module.Context, job *actions_model.ActionRunJob, shou
522522
return fmt.Errorf("get run %d variables: %w", job.Run.ID, err)
523523
}
524524

525-
if job.RawConcurrency != "" && job.Status == actions_model.StatusWaiting {
525+
if job.RawConcurrency != "" && !shouldBlock {
526526
err = actions_service.EvaluateJobConcurrencyAndFillJobModel(ctx, job.Run, job, vars)
527527
if err != nil {
528528
return fmt.Errorf("evaluate job concurrency: %w", err)

0 commit comments

Comments
 (0)