Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

How to use retry in sidekiq?

$
0
0

SIDEKIQ RETRY WOULD NOT WORK – REASON is Handled Exception

  1. Workername TestWorker.perform_async(*test)
  2. WorkerClassname
class TestWorker  include Sidekiq::Worker  sidekiq_options queue: :test_q, retry: 3, backtrace: 10  def perform(*args)    test_data(*args)  end   def test_data(*test)     begin      @d.join    rescue Exception => e       p e    end  end end

Note: In this case retry is not working. I need this begin rescue also and Sidekiq Retry function also


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>