Recently I have shifted from 'Sidekiq' to 'Resque' gem in my application. I want to shift the scheduled jobs also. But I am unaware of how to do that.
Code with Sidekiq (Before) -
class SetCurrentDay
include Sidekiq::Worker
include Sidetiq::Schedulable
recurrence { daily.hour_of_day(0).minute_of_hour(0) }
end
Code with Resque (After) -
class SetCurrentBugDay
require 'resque/server'
recurrence { daily.hour_of_day(0).minute_of_hour(0) }
end
Does anyone know how to do this? Please help!
https://medium.com/@pawlkris/scheduling-tasks-in-rails-with-cron-and-using-the-whenever-gem-34aa68b992e3
https://dev.to/risafj/cron-jobs-in-rails-a-simple-guide-to-actually-using-the-whenever-gem-now-with-tasks-2omi
I think it will help you to schedule "Cron jobs in Rails"