Skip to content

Instance Method

nextRetryIn(attempt:)

Called when there was an error and the job will be retried.
func nextRetryIn(attempt: Int) -> Int

Parameters

attempt

Number of job attempts which have failed so far.

Return Value

Number of seconds to delay the next retry. Return 0 to place the job back on the queue with no delay added. If this method is not implemented, the default is 0. Returning -1 is the same as 0.

Default Implementations

Job Implementations