How to execute multiple arguments in a single rake using sidekiq worker? -



How to execute multiple arguments in a single rake using sidekiq worker? -

i new sidekiq, created sidekiq worker, when run sidekiq worker, executes first rake task

i want execute single rake 2 different combinations of arguments

e.g

def perform rake::task['test:fetch'].invoke("foo", "bar", 1, 1) rake::task['test:fetch'].invoke("foo1", "bar1", 1, 1) end

how execute above interval of 5 minutes, should run rake 2 times or other method pass 2 diffrent arguments?

that's how rake works. read rake documentation tasks , invoke()

arguments rake sidekiq worker

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -