H
H
Hash Hash2015-10-27 20:29:18
linux
Hash Hash, 2015-10-27 20:29:18

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

1 answer(s)
A
Andrey Nikiforov, 2015-10-27
@eoffsock

class LessRetryableWorker
  include Sidekiq::Worker
  sidekiq_options :retry => 5 # Only five retries and then to the Dead Job Queue

  def perform(...)
  end
end

https://github.com/mperham/sidekiq/wiki/Error-Handling

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question