Merge pull request #2866 from cfromknecht/inc-worker-timeout
pool/worker: increase worker timeout to 90s
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -13,7 +13,7 @@ var ErrWorkerPoolExiting = errors.New("worker pool exiting")
|
|||||||
// DefaultWorkerTimeout is the default duration after which a worker goroutine
|
// DefaultWorkerTimeout is the default duration after which a worker goroutine
|
||||||
// will exit to free up resources after having received no newly submitted
|
// will exit to free up resources after having received no newly submitted
|
||||||
// tasks.
|
// tasks.
|
||||||
const DefaultWorkerTimeout = 5 * time.Second
|
const DefaultWorkerTimeout = 90 * time.Second
|
||||||
|
|
||||||
type (
|
type (
|
||||||
// WorkerState is an interface used by the Worker to abstract the
|
// WorkerState is an interface used by the Worker to abstract the
|
||||||
|
|||||||
Reference in new issue
Block a user