From 6d3bd7d47aa9d08847eecfb241298f323aae05ca Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 26 Oct 2020 21:12:46 +0300 Subject: - lazy load test --- pool.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pool.go') diff --git a/pool.go b/pool.go index bc57bcbd..de7e837d 100755 --- a/pool.go +++ b/pool.go @@ -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 -- cgit v1.2.3