Basic cron-like system to schedule jobs
- Add
cron-tablegem - Run
rails app:cron_table:install:migrations - Run
rails db:migrateto apply migrations
- Add
include CronTable::Scheduleto the job - Define cron schedule using
crontable(every: <interval>) - Use block if cron requires params, eg
crontable(every: 1.day) { perform_later(Time.now) }
The gem is available as open source under the terms of the MIT License.