Periodic Task in Rails

Hi,

Does the rails framework supports the execution of periodic tasks?

Supose that I need to process RSS Feeds to update the database of the
web application. Is this possible?

Thanks,
Gama F.

Your best bet will probably be backgroundrb http://
backgroundrb.rubyforge.org/

scott.

or call rails code by using the runner, like this:
RAILS_ENV=development script/runner “p Product.find_all”
Put it in a cronjob to run it till the end of times :wink:

Gert

I’ve used 2 main approaches to this:

-cron job that runs a script. We tend to use this for relatively
infrequent tasks (eg we have a mailing we send out to users once a day)
-long running process that wakes up every so often to do something. We
tend to use this for things that run quite often, where it seems silly
to be repeatedly loading rails only to ditch it, and then load it again
30 seconds later.

Fred