Merge pull request #5251 from liismn/master

Fix deadlock in runWorker in sched_worker.go
This commit is contained in:
Łukasz Magiera 2021-01-05 19:35:49 +01:00 committed by GitHub
commit 2c9f4ad5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ func (sh *scheduler) runWorker(ctx context.Context, w Worker) error {
log.Warnw("duplicated worker added", "id", wid)
// this is ok, we're already handling this worker in a different goroutine
sh.workersLk.Unlock()
return nil
}