Skip to content

Commit

Permalink
increase default timeout from 3s to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonjoseph committed Sep 7, 2023
1 parent a97d391 commit 14ea739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ This class extends [`EventEmitter`][] from Node.js.
Defaults to `true`. (This option is only supported on Node.js 12.19+ and
all Node.js versions higher than 14.6.0).
* `closeTimeout`: (`number`) An optional time (in milliseconds) to wait for the pool to
complete all in-flight tasks when `close()` is called. The default is `3000`
complete all in-flight tasks when `close()` is called. The default is `30000`

Use caution when setting resource limits. Setting limits that are too low may
result in the `Piscina` worker threads being unusable.
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const kDefaultOptions : FilledOptions = {
taskQueue: new ArrayTaskQueue(),
niceIncrement: 0,
trackUnmanagedFds: true,
closeTimeout: 3000
closeTimeout: 30000
};

interface RunOptions {
Expand Down

0 comments on commit 14ea739

Please sign in to comment.