Merge pull request #2866 from cfromknecht/inc-worker-timeout

pool/worker: increase worker timeout to 90s
This commit is contained in:
Olaoluwa Osuntokun
2019-04-26 15:46:59 -07:00
committed by GitHub

View File

@ -13,7 +13,7 @@ var ErrWorkerPoolExiting = errors.New("worker pool exiting")
// DefaultWorkerTimeout is the default duration after which a worker goroutine
// will exit to free up resources after having received no newly submitted
// tasks.
const DefaultWorkerTimeout = 5 * time.Second
const DefaultWorkerTimeout = 90 * time.Second
type (
// WorkerState is an interface used by the Worker to abstract the