Retry
Retry Mechanism
Configuring Retries
JoobQ.configure do |config|
config.retries = 5
endclass RetryJob
include JoobQ::Job
@retries = 10 # This job will retry up to 10 times
def perform
puts "Performing a job that may need retries"
raise "Simulated failure" if some_condition_fails
end
endLast updated
Was this helpful?