diff options
author | Wolfy-J <[email protected]> | 2020-10-26 21:46:23 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-26 21:46:23 +0300 |
commit | 2176584129e493e08aed158bc050070d520ee183 (patch) | |
tree | 0d4664ef76ff6515fa965690a79dc69604eb3849 /pool.go | |
parent | 9d2de5e46110c07eceb87dcfde3af9b6a6c4a76c (diff) |
- implement worker debug mode
Diffstat (limited to 'pool.go')
-rwxr-xr-x | pool.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,6 +66,9 @@ type Pool interface { // Configures the pool behaviour. type Config struct { + // Debug flag creates new fresh worker before every request. + Debug bool + // NumWorkers defines how many sub-processes can be run at once. This value // might be doubled by Swapper while hot-swap. Defaults to number of CPU cores. NumWorkers int64 @@ -75,9 +78,6 @@ type Config struct { // worker handle as many tasks as it can. MaxJobs int64 - // HeavyLoad flag creates new fresh worker before every request. - HeavyLoad 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 |