Skip to content

Commit

Permalink
fix(api): avoid double book by the same hatchery (#6720)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault authored Dec 7, 2023
1 parent e375250 commit d66aad6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions engine/api/workflow/execute_node_job_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,6 @@ func BookNodeJobRun(ctx context.Context, store cache.Store, defaultBookDelay int
}
return nil, nil
}
if h.ID == hatchery.ID {
return nil, nil
}
return &h, sdk.WrapError(sdk.ErrJobAlreadyBooked, "BookNodeJobRun> job %d already booked by %s (%d)", id, h.Name, h.ID)
}

Expand Down

0 comments on commit d66aad6

Please sign in to comment.