pg-boss

Queueing jobs in Postgres from Node.js like a boss

MIT License

Downloads
267.8K
Stars
2.1K
Committers
52

Bot releases are visible (Hide)

pg-boss - 8.3.1

Published by timgit over 1 year ago

  • Stop maintenance jobs before shut down when workers don't stop within the grace period
  • Update deps

Full Changelog: https://github.com/timgit/pg-boss/compare/8.3.0...8.3.1

pg-boss -

Published by timgit almost 2 years ago

  • Added destroy option for connection pool management during stop(). PR #358 from @abelsoares

https://github.com/timgit/pg-boss/compare/8.2.0...8.3.0

pg-boss -

Published by timgit almost 2 years ago

  • Downgraded ESM packages p-map and serialize-error to cjs for compatibility with most test runners

https://github.com/timgit/pg-boss/compare/8.1.1...8.2.0

pg-boss -

Published by timgit almost 2 years ago

  • Typescript types. PR from @klesgidis

https://github.com/timgit/pg-boss/compare/8.1.0...8.1.1

pg-boss -

Published by timgit almost 2 years ago

  • Added database connection option to more commands to support running inside a transaction. PR from @klesgidis
  • Default uuid config is now v4 instead of v1

https://github.com/timgit/pg-boss/compare/8.0.0...8.1.0

pg-boss - 8.0.0

Published by timgit about 2 years ago

  • MAJOR: Node 12 is EOL. Node 14 is now the minimum supported version.
  • MINOR: Added db option to fetch(), send() and insert() to use an existing connection. The primary use case is for pg-boss to participate in a database transaction. PR from @klesgidis
  • MINOR: Safe JSON serialization added instead of passing down to the pg driver. Handles issues such as cyclical refs when saving job results.
  • MINOR: Upgraded CI builds to run on Postgres 13.
  • PATCH: Added a statement timeout to all internal advisory locks used by maintenance operations.

https://github.com/timgit/pg-boss/compare/7.4.0...8.0.0

pg-boss -

Published by timgit over 2 years ago

  • Singleton queues can now use wildcards to allow sub-groups - PR #329 from @adamhamlin
  • Minor code changes to timekeeper to make it more clear how scheduling works - Issue #327
  • Pruned migration store to only look back 2 major releases. If this causes an issue upgrading from a really old version of pg-boss, first upgrade to an older version such as v6, then upgrade to v7.
pg-boss -

Published by timgit over 2 years ago

  • Added notifyWorker(id) to bypass the job polling interval when needed. PR from @ilijaNL
pg-boss -

Published by timgit over 2 years ago

  • Typescript type and dosc updated via PR from @chougron
pg-boss -

Published by timgit over 2 years ago

  • Added resume(). PR from @lionls
pg-boss - 7.1.0

Published by timgit over 2 years ago

  • 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.
pg-boss -

Published by timgit almost 3 years ago

  • Updated TypeScript type for monitor-states event payload via PR from @amc6
pg-boss -

Published by timgit almost 3 years ago

  • Added Node's EventEmitter as a base class for pg-boss for TypeScript. PR from @jhermsmeier
pg-boss - 7.0.1

Published by timgit almost 3 years ago

  • Typescript types update - PR from @bwalding
pg-boss - 7.0.0

Published by timgit almost 3 years ago

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.
    • Thanks to @chrisjensen for the PR to add this!
pg-boss -

Published by timgit about 3 years ago

  • 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
pg-boss -

Published by timgit about 3 years ago

  • Fixed stray rejection timer in subscribe() on error
pg-boss -

Published by timgit about 3 years ago

  • 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
pg-boss -

Published by timgit about 3 years ago

  • Error object serialization fix for custom properties. PR from @nicoburns #261
pg-boss -

Published by timgit about 3 years ago

  • Updated queue maintenance monitoring to abort stalled active jobs