Cronjob in Rails?

Hello everyone, I have to develop a cronjob in my app, it should run
automatically every 2 hours, is there a way of doing it simply
creating a rake task? I don' t know how could I set the interval time
for it. Do you know? Please help!

Rodrigo Alves Vieira

Hi Rodrigo,

Why don't you just use cron?


Try looking into delayed_job. It has lots of flexibility yet is pretty
easy to use.

I recommend resque.

Hi Rodrigo,

Have a look here

and also check this

All the best,