executor: add missing mutex unlock
Add missing mutex unlock that will cause deadlocks.
This commit is contained in:
parent
9f1a3e405d
commit
714da3ffe3
@ -778,6 +778,7 @@ func (e *Executor) executeTask(ctx context.Context, et *types.ExecutorTask) {
|
|||||||
|
|
||||||
if !e.runningTasks.addIfNotExists(et.ID, rt) {
|
if !e.runningTasks.addIfNotExists(et.ID, rt) {
|
||||||
log.Debugf("task %s already running", et.ID)
|
log.Debugf("task %s already running", et.ID)
|
||||||
|
rt.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user