From 714da3ffe324c365f6ea091fac1e83541ddda94d Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Tue, 17 Sep 2019 23:32:23 +0200 Subject: [PATCH] executor: add missing mutex unlock Add missing mutex unlock that will cause deadlocks. --- internal/services/executor/executor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/services/executor/executor.go b/internal/services/executor/executor.go index 6bada90..5ea3fab 100644 --- a/internal/services/executor/executor.go +++ b/internal/services/executor/executor.go @@ -778,6 +778,7 @@ func (e *Executor) executeTask(ctx context.Context, et *types.ExecutorTask) { if !e.runningTasks.addIfNotExists(et.ID, rt) { log.Debugf("task %s already running", et.ID) + rt.Unlock() return }