Skip to content

v3.3.3

Choose a tag to compare

@github-actions github-actions released this 14 Sep 19:46
· 4 commits to master since this release

What's changed

Documentation only — the last two places in the reference that described safe delivery as covering the hand-off but not the handler:

  • JobQueue class remarks — a job in flight when the process exits on SIGTERM/SIGINT/SIGABRT was described as lost. It is not: under safe delivery it stays checked out and is re-run from the start on another worker once this process has left the broker's client list.
  • onPop handler contract — "that attempt is lost — safe delivery guards the hand-off of a job, not its processing" is replaced with what actually happens: the delay the handler would have returned is never applied when the process dies, because the return value is acted on here, but the job itself is re-delivered.

Together with 3.3.2 this completes the correction: the worker key is held until the handler settles, death is detected from the broker's client list on the watcher's next sweep, and safeLockTtl is a processing deadline — the longest a live worker may hold a job before it is reclaimed. Delivery is at-least-once, so handlers must be idempotent.

No runtime changes.

Full Changelog: v3.3.2...v3.3.3

About

@imqueue/job — Simple job queue. Part of the @imqueue framework for Node.js & TypeScript microservices.