HaltRetryStrategy

open class HaltRetryStrategy: JobRetryStrategy

A retry strategy that doesn’t actually retry anything. Rather, this strategy will simply stop the queue, halting all further progress, queue the job for immediate processing when the queue is started again.

  • Stops the queue and inserts the job to be at the front of the queue, Thus guaranteeing it to be retried when the queue starts back up again.

    Declaration

    Swift

    public func retry<JobType: QueueJob>(job: JobType, failedOnQueue queue: JobQueue<JobType>)

    Parameters

    job

    The job that failed

    queue

    The queue on which the job failed