pg-boss v1.1.0 Release Notes

    • โž• Added onExpire(jobName, callback) for guaranteed handling of expiration (not just an event anymore)
    • ๐Ÿ‘ท failed was added as a job status
    • now emits 'failed' on unhandled subscriber errors instead of 'error', which is far safer
    • ๐Ÿ‘ done() in suscribe() callbacks now support passing an error (the popular node convention) to ๐Ÿ‘ท automatically mark the job as failed as well as emitting failed. For example, ๐Ÿ‘ท if you are processing a job and you want to explicitly mark it as failed, you can just call done(error) at any time.
    • ๐Ÿ‘ท fail(jobId) added for external failure reporting along with fetch() and complete()
    • ๐Ÿ‘ท unsubscribe(jobName) added to undo a subscribe()