JobSnooze can be returned from a Worker's Work method to cause the job to be tried again after the specified duration. This will not increment the job's Attempt count, meaning that jobs can be repeatedly snoozed without ever being discarded. A special duration of zero can be used to make the job im
(duration time.Duration)
| 41 | // |
| 42 | // Panics if duration is < 0. |
| 43 | func JobSnooze(duration time.Duration) error { |
| 44 | return &rivertype.JobSnoozeError{Duration: duration} |
| 45 | } |
| 46 | |
| 47 | // QueueAlreadyAddedError is returned when attempting to add a queue that has |
| 48 | // already been added to the Client. |
no outgoing calls
searching dependent graphs…