mirror of https://github.com/go-co-op/gocron.git
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:
parent
56373353b1
commit
77dba0ad18
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue