Releases: timgit/pg-boss
Releases · timgit/pg-boss
7.1.0
7.0.3
7.0.2
- Added Node's EventEmitter as a base class for pg-boss for TypeScript. PR from @jhermsmeier
7.0.1
7.0.0
Publish/Subscribe 🎉
The primary theme of v7 is changing the semantics of the API to introduce a publish/subscribe feature that more closely aligns with other queue & messaging products that use a fan-out relationship between an event and subscription. Previously, pg-boss used publish()
for "create a new job" and subscribe()
for "poll a queue on an interval and execute a function".
- MAJOR:
publish()
renamed tosend()
- MAJOR:
subscribe()
renamed towork()
- MAJOR: New pub/sub functions added for fan-out relationships between events and queues.
subscribe()
will register a named event to a queuepublish()
will add a job to each subscribed queue per event- Thanks to @tcoats for the PR to add this!
teamRefill
option added towork()
when usingteamSize
to prevent longer-running jobs from delaying job processing in the worker.- Thanks to @chrisjensen for the PR to add this!