diff options
Diffstat (limited to 'pool.go')
-rwxr-xr-x | pool.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -75,6 +75,11 @@ type Config struct { // worker handle as many tasks as it can. MaxJobs int64 + // Deferred flag enables slower working mode which inits empty worker ahead of every request. Useful to debug + // applications with heavy bootload phase. Do not use at production. It is also keeps pool without any workers + // until first request. + Deferred bool + // AllocateTimeout defines for how long pool will be waiting for a worker to // be freed to handle the task. Defaults to 60s. AllocateTimeout time.Duration |