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

http://rodrigo3n.com

Hi Rodrigo,

Why don't you just use cron?

Bill

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

I recommend resque.

http://github.com/defunkt/resque

Hi Rodrigo,

Have a look here http://github.com/javan/whenever

and also check this #164 Cron in Ruby - RailsCasts

All the best,

Fidel.