Skip to content

Releases: timgit/pg-boss

7.1.0

28 Jan 23:13
ba8d501
Compare
Choose a tag to compare
  • Allows all functions to continue to work after an instance has been stopped except for work() and onComplete(). Previously, if a job was running that needed to create a new job, it would fail during a graceful stop.

7.0.3

15 Jan 00:51
Compare
Choose a tag to compare
  • Updated TypeScript type for monitor-states event payload via PR from @amc6

7.0.2

22 Dec 17:10
Compare
Choose a tag to compare
  • Added Node's EventEmitter as a base class for pg-boss for TypeScript. PR from @jhermsmeier

7.0.1

20 Dec 14:43
Compare
Choose a tag to compare
  • Typescript types update - PR from @bwalding

7.0.0

17 Dec 01:01
8d34ab7
Compare
Choose a tag to compare

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 to send()
  • MAJOR: subscribe() renamed to work()
  • MAJOR: New pub/sub functions added for fan-out relationships between events and queues.
    • subscribe() will register a named event to a queue
    • publish() will add a job to each subscribed queue per event
    • Thanks to @tcoats for the PR to add this!
  • teamRefill option added to work() when using teamSize to prevent longer-running jobs from delaying job processing in the worker.

6.2.2

14 Oct 20:44
254fa0c
Compare
Choose a tag to compare
  • Fixed onError to emit full error message and stack @phips28 #278
  • Migrated static mutex for advisory locks to be database + schema derived to prevent multi-tenant hosting from blocking each other #281

6.2.1

13 Aug 15:13
b226877
Compare
Choose a tag to compare
  • Fixed stray rejection timer in subscribe() on error

6.2.0

12 Aug 14:59
a391486
Compare
Choose a tag to compare
  • Added insert() api for bulk loading an array of jobs in a single request as an alternative to publish()
  • Removed exclusion of state completion jobs from monitor-states event

6.1.3

30 Jul 14:35
Compare
Choose a tag to compare
  • Error object serialization fix for custom properties. PR from @nicoburns #261

6.1.2

07 Jul 03:23
Compare
Choose a tag to compare
  • Typescript types and docs updated for stop(). PR from @fiznool