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:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user