How to set retry count for Sidekiq with ActiveJob?

后端 未结 7 2036
走了就别回头了
走了就别回头了 2021-02-07 01:50

From the Rails API, I found ActiveJob can retry_job interval:

my_job_instance.enqueue
my_job_instance.enqueue wait: 5.minutes
my_job_instance.enqueue queue: :imp         


        
相关标签:
7条回答
  • 2021-02-07 02:52

    As of Sidekiq 6.0.4 you can use sidekiq_options in an ActiveJob to set the retry option.

    0 讨论(0)
提交回复
热议问题