Skip to content

Commit

Permalink
Update documentation for new destroy option
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsoares committed Dec 29, 2022
1 parent 077590d commit 503fb4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/readme.md
Expand Up @@ -438,6 +438,9 @@ By default, calling `stop()` without any arguments will gracefully wait for all

* `options`: object

* `destroy`, bool
Default: `false`. If `true` and the database connection is managed by pg-boss, it will destroy the connection pool.

* `graceful`, bool

Default: `true`. If `true`, the PgBoss instance will wait for any workers that are currently processing jobs to finish, up to the specified timeout. During this period, new jobs will not be processed, but active jobs will be allowed to finish.
Expand Down

0 comments on commit 503fb4d

Please sign in to comment.