timgit / pg-boss

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

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

Closed aefji closed 1 year ago

aefji commented 1 year ago

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

timgit commented 1 year 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