How do I schedule recurring jobs in Active Job (Rails 4.2)?

前端 未结 4 1721
庸人自扰
庸人自扰 2020-12-15 16:06

I found this Schedule one-time jobs in Rails but this only shows how schedule one-time. I am interested in scheduling a recurring job.

Delayed_job has this

4条回答
  •  一个人的身影
    2020-12-15 16:29

    If you're using resque as your ActiveJob backend, you can use a combination of resque-scheduler's Scheduled Jobs and active_scheduler (https://github.com/JustinAiken/active_scheduler, which wraps the scheduled jobs to work properly with ActiveJob).

提交回复
热议问题