worker tasks now share one db context, rather than one per task
authorJustin Wind <justin.wind+git@gmail.com>
Fri, 13 Aug 2021 18:57:20 +0000 (11:57 -0700)
committerJustin Wind <justin.wind+git@gmail.com>
Fri, 13 Aug 2021 18:57:20 +0000 (11:57 -0700)
commit9f9d3c81cc0960f03e6598258d36ad828058f65f
tree4aefbf747229eab12b0246646e41daf6b0a84fef
parent5e7ab1d9ec27aab6e321c5a647cc1717980d331e
worker tasks now share one db context, rather than one per task

When using Postgres, each context is a connection.  Moved the context
creation into the worker so that all tasks can use one connection when
its processing, which is much healthier for the database.
CHANGELOG.md
README.md
src/communication.js
src/worker.js
test/src/communication.js
test/src/worker.js