On Heroku, any process that takes more than 30 seconds has to run in a background task. The only other option is cron, but that can only run once per hour.
P.S. I think it's super lame that people downvote you because they disagree with you. Alas, it is HN.