Answer the question
In order to leave comments, you need to log in
How to limit the number of attempts to execute a failed worker in Sidekiq/ActiveJob?
How to limit the number of attempts to execute a failed worker in Sidekiq/ActiveJob?
Answer the question
In order to leave comments, you need to log in
class LessRetryableWorker
include Sidekiq::Worker
sidekiq_options :retry => 5 # Only five retries and then to the Dead Job Queue
def perform(...)
end
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question