JobCancel wraps err and can be returned from a Worker's Work method to cancel the job at the end of execution. Regardless of whether or not the job has any remaining attempts, this will ensure the job does not execute again.
(err error)
| 19 | // the job at the end of execution. Regardless of whether or not the job has any |
| 20 | // remaining attempts, this will ensure the job does not execute again. |
| 21 | func JobCancel(err error) error { |
| 22 | return rivertype.JobCancel(err) |
| 23 | } |
| 24 | |
| 25 | // JobSnoozeError is the error type returned by JobSnooze. It should not be |
| 26 | // initialized directly, but is returned from the [JobSnooze] function and can |
searching dependent graphs…