Skip to content

Commit

Permalink
correct lock to use job.name instead of id (#623)
Browse files Browse the repository at this point in the history
Co-authored-by: Le Ha Khiem <hakhiem.va@gmail.com>
  • Loading branch information
JohnRoesler and Le Ha Khiem committed Nov 16, 2023
1 parent 5637335 commit 77dba0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (e *executor) runJob(j internalJob) {
return
}
} else if e.locker != nil {
lock, err := e.locker.Lock(j.ctx, j.id.String())
lock, err := e.locker.Lock(j.ctx, j.name)
if err != nil {
return
}
Expand Down

0 comments on commit 77dba0a

Please sign in to comment.