How to set retry count for Sidekiq with ActiveJob?

后端 未结 7 2044
走了就别回头了
走了就别回头了 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.

提交回复
热议问题