Skip to content

v0.3.4

Choose a tag to compare

@danish-a1 danish-a1 released this 10 Nov 16:54
· 4 commits to main since this release

Fixed

  • Graceful shutdown abandoned in-flight jobs. Apps cancel the worker context (their signal context) before calling Shutdown, and processJobSafely stopped waiting for the handler as soon as that context was done: Shutdown returned while the job was still running, and the job was counted as failed (retried or dead-lettered with context canceled). The worker now waits for the handler to return when the worker context is canceled; the handler still sees the cancel, and Shutdown's own deadline bounds the wait. Per-job timeouts still abandon the handler as before. Regression test: TestShutdownWaitsForInFlightJobAfterCtxCancel.