correct lock to use job.name instead of id (#623)

Co-authored-by: Le Ha Khiem <hakhiem.va@gmail.com>
This commit is contained in:
John Roesler 2023-11-16 07:49:43 -06:00 committed by GitHub
parent 56373353b1
commit 77dba0ad18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}