I have a number of Ruby-based tasks which run on a scheduled basis via
cron. Some of these use the full Rails framework + gems, while others
load only portions of it. These tasks are starting to consume
significant memory, so I'm thinking of running them through Passenger
to make use of memory sharing. One approach would be to have a cron
job fire off HTTP requests that result in a controller action being
called that can execute my task, but I wanted to ask if there might be
better ways of doing this.
Also, to achieve maximum memory sharing with Passenger, all gems used
would need to be required in environment.rb, correct?
-Josh