Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ The `exec`, `env`, `argv`, and `silent` configs are passed to the
* `onMessage` - Method that gets called when workers send a message to
the parent. Called in the context of the worker, so you can reply by
looking at `this`.
- `killWaitTime` - The time to wait before force-killing a worker.
* `repl` - where to have REPL listen, defaults to `env.CLUSTER_MASTER_REPL` || 'cluster-master-socket'
* if `repl` is null or false - REPL is disabled and will not be started
* if `repl` is string path - REPL will listen on unix domain socket to this path
Expand Down
2 changes: 1 addition & 1 deletion cluster-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function forkListener () {
disconnectTimer = setTimeout(function () {
debug("Worker %j, forcefully killing", id)
worker.process.kill("SIGKILL")
}, 5000)
}, config.killWaitTime || 5000)
})
})
}
Expand Down