ruby on rails - How to schedule Sidekiq Woker.perform.now? -


i have worker 1 perform class. in controller calling worker class. when call worker.perform.now see in console perform method being executed want it.

how schedule callup in controller, performed every day @ ten o'clock?

ps: when call worker.perform_async doesn't anything.

ps: when call worker.perform_async doesn't anything.

i guess, didn't start sidekiq server. type sidekiq in console start server.

as goes scheduling sidekiq jobs perform every period of time, there several ways it.

the 1 recomended sidekiq's author use cron whenever gem. provide , example here: https://github.com/mperham/sidekiq/blob/master/examples/scheduling.rb

other way use sidekiq-cron gem. i've found easier setup, emulates cron, that's why first solution more solid.


Comments