Run Delayed Jobs and Sidekiq at the same time

后端 未结 3 1383
说谎
说谎 2020-12-31 06:24

I currently use delayed job to process jobs asynchronously. Instead of creating workers, I use the .delay method a lot.

I want to move to Sidekiq, but I

3条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 06:49

    It seems that Sidekiq has mix-in that adds .delay methods to all classes. Not 100% sure how this will behave but it could result in problems if delay you are refering to is on the instance level.

    My advice would be to add sidekiq library per job until you have moved all you jobs to it. Meaning to avoid including both libraries at the same time, again if possible.

提交回复
热议问题