How to set retry count for Sidekiq with ActiveJob?

后端 未结 7 2038
走了就别回头了
走了就别回头了 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:39

    FYI this problem has been fixed in the release of Sidekiq 6.0. You can have a look at the changelog here: https://github.com/mperham/sidekiq/blob/master/Changes.md

    But basically you can pass the same options by calling sidekiq_options with your options hash. Thanks Mike Perham.

提交回复
热议问题