timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

Should stop() when sending jobs from a lambda API? #344

Closed aefji closed 2 years ago

aefji commented 2 years ago

When sending jobs from a lambda API, is it recommended/required to stop() before ending of the function?

timgit commented 2 years ago

If you're using the minimal config of noSupervisor=true and noScheduling=true, and don't use work(), then calling stop() doesn't really have anything to stop. It would be optional in that case