Skip to content

Commit d66aad6

Browse files
authored
fix(api): avoid double book by the same hatchery (#6720)
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
1 parent e375250 commit d66aad6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

engine/api/workflow/execute_node_job_run.go

-3
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ func BookNodeJobRun(ctx context.Context, store cache.Store, defaultBookDelay int
375375
}
376376
return nil, nil
377377
}
378-
if h.ID == hatchery.ID {
379-
return nil, nil
380-
}
381378
return &h, sdk.WrapError(sdk.ErrJobAlreadyBooked, "BookNodeJobRun> job %d already booked by %s (%d)", id, h.Name, h.ID)
382379
}
383380

0 commit comments

Comments
 (0)