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.
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.
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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs