JoobQ.NonRetryable exception (joobq_ex v0.8.0)

Copy Markdown View Source

A failure that sends the job to the dead letter queue at once, its retries unused: raise it in JoobQ.Worker.perform/1 (raise JoobQ.NonRetryable, "the account is closed") or return {:error, JoobQ.NonRetryable.exception("the account is closed")}.