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. This function primarily exists for cross module compatibility. Users shoul
(err error)
| 15 | // This function primarily exists for cross module compatibility. Users should |
| 16 | // use river.JobCancel instead. |
| 17 | func JobCancel(err error) error { |
| 18 | return &JobCancelError{err: err} |
| 19 | } |
| 20 | |
| 21 | // JobCancelError is the error type returned by JobCancel. It should not be |
| 22 | // initialized directly, but is returned from the [JobCancel] function and can |
no outgoing calls
searching dependent graphs…