What is the best way to run a long task on Heroku with Ruby On Rails?

I am looking for the best way to run a very long task in Heroku.

I use Ruby On Rails for my web application and I have a very long task that I want to run every week on Sunday night. It takes about 15-20 minutes. I already have Rufus-Scheduler , but I'm not sure if this is the most efficient solution.

I also found something about Background Tasks in Heroku with Delay Jobs . But the best way to handle this?

Thanks.

+5
source share
1 answer

This is what I use for the work I run every night: https://devcenter.heroku.com/articles/scheduler

This works very well if your job is set up as a rake task. The link guide shows how to configure everything and even address lengthy tasks.

+5
source

All Articles