Rails, best practices for starting a scheduler like Rufus -


I am using to schedule jobs in the background, but the problem is, I am not clear When or how does the scheduler start in my app, as if I start it in the beginner? Or do I do one work in a controller that starts the scheduler? Or will I put it in a model ... I am not sure how to implement it.

Any idea would be very useful.

It's easy to add it to starters:

config / initializers / Task_scheduler.rb : is required 'Rafsus / Scheduler' scheduler = Ruufus :: Scheduler.Serst_Inu scheduler. All ("1m") some class .forstom_task end < / Code>

Comments