Merge pull request #117 from sgotti/executor_add_missing_mutex_unlock

executor: add missing mutex unlock
This commit is contained in:
Simone Gotti 2019-09-18 11:14:26 +02:00 committed by GitHub
commit eddb62b6e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}