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 V.

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.

2010/10/4 rodrigo3n [email protected]

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Frederico Macêdo de Assunção
(62) 8464-7107
http://setalabs.com.br

On 10/4/10, rodrigo3n [email protected] wrote:

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!

Hi Rodrigo,

Have a look here GitHub - javan/whenever: Cron jobs in Ruby

and also check this #164 Cron in Ruby - RailsCasts

All the best,

Fidel.