From 77dba0ad1843adad71b637e3b487512cc61ca836 Mon Sep 17 00:00:00 2001 From: John Roesler Date: Thu, 16 Nov 2023 07:49:43 -0600 Subject: [PATCH] correct lock to use job.name instead of id (#623) Co-authored-by: Le Ha Khiem --- executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor.go b/executor.go index 96a17cd8..c2fe6a56 100644 --- a/executor.go +++ b/executor.go @@ -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 }