summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-26 21:46:23 +0300
committerWolfy-J <[email protected]>2020-10-26 21:46:23 +0300
commit2176584129e493e08aed158bc050070d520ee183 (patch)
tree0d4664ef76ff6515fa965690a79dc69604eb3849 /pool.go
parent9d2de5e46110c07eceb87dcfde3af9b6a6c4a76c (diff)
- implement worker debug mode
Diffstat (limited to 'pool.go')
-rwxr-xr-xpool.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pool.go b/pool.go
index b1b58b6a..aca1b340 100755
--- a/pool.go
+++ b/pool.go
@@ -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