timgit / pg-boss

Queueing jobs in Node.js using PostgreSQL like a boss
MIT License
1.79k stars 149 forks source link

Add support for destroy option #358

Closed abelsoares closed 1 year ago

abelsoares commented 1 year ago

This PR adds support for destroy as an option for the stop() method.
If the database connection is handled by pb-boss, this option will make it possible to close the pg connection pool.

Closes #318

coveralls commented 1 year ago

Coverage Status

Coverage: 100.0%. Remained the same when pulling 1f315b12260278ed7afc5f392920bb34b7620c55 on abelsoares:enhancement/destroy-option into 6e7a077f9cda8661729f4fbb32b54caff64dcca5 on timgit:master.

abelsoares commented 1 year ago

Hi @timgit, can you have a look at this?