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
Post a Comment