Skip to content
Snippets Groups Projects
Unverified Commit bf157935 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

retry after 1 minute when good job interrupts

parent 94008478
No related branches found
No related tags found
No related merge requests found
class Communication::Website::BaseJob < ApplicationJob
self.good_job_labels = ['website']
include GoodJob::ActiveJobExtensions::InterruptErrors
queue_as :elephant
discard_on ActiveJob::DeserializationError
# Retry the job after 1 minute if it is interrupted, to prevent queue from being blocked
retry_on GoodJob::InterruptError, wait: 1.minute, attempts: Float::INFINITY
attr_accessor :website_id
def perform(website_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment