Added
- Added
EventKindJobInterrupted, emitted when a running job is interrupted because its client is shutting down, the job was cancelled, and has been made immediately available to be worked again. PR #1290.
Changed
- Jobs that didn't finish in time organically while a client was stopping and had to have their context cancelled no longer have this cancellation counted as an error.
attemptis reset to the number it was before the job started working,errorsis left unchanged, andstateis madeavailableso jobs are eligible to be retried immediately. PR #1290
Fixed
- Write timestamps in SQLite to always include three digits after the second like
.000. Previously, they may have been truncated down to just.0in the case of trailing zeroes. PR #1349 - Job completion events now reflect the job's persisted outcome when it differs from the transition requested by the worker. For example, a job completed with
JobCompleteTxbefore its worker returns an error emitsjob_completed, and a remotely cancelled job whose worker errors or snoozes emitsjob_cancelled. Applications subscribed only tojob_failedorjob_snoozedshould note that these events may instead be delivered tojob_completedorjob_cancelledsubscribers. PR #1350