Skip to content

v0.3.6

Latest

Choose a tag to compare

@danish-a1 danish-a1 released this 10 Nov 17:44

Added

  • goqueue.Permanent(err) (also job.Permanent) marks a job error as non-retryable, and goqueue.IsPermanent(err) detects the mark. When a handler returns a permanent error (also when wrapped again with %w), the worker skips the remaining retries and dead-letters the job at once instead of retrying a request that cannot succeed, such as one an API rejected with a 4xx. The DLQ entry keeps the original error chain. Permanent(nil) is nil.