BackgrounDRb now with ActiveRecord Goodness.
Posted by ezmobius Mon, 12 Jun 2006 22:18:00 GMT
Quick note here to announce a new release of the BackgrounDRb plugin. THis release adds the ability to easily work with your ActiveRecord models from your worker classes. I also added a config file that you can use to change the port and host as well as tell it whether or not to connect to the database and what environment to use when doing so.
Also worker classes are even easier to create now. You no longer have to deal with Threads yourself and the @logger object is automatically available to you. So now a worker class inherit from BackgrounDRb::Rails and looks like this:
class MyWorker < BackgrounDRb::Rails
def do_work(args)
# put your code in here to run your tasks.
# this method is called when you create a
# new worker. No more dealing with Threads
# yourself!
end
end
Home page: http://backgroundrb.rubyforge.org
svn repo: svn://rubyforge.org//var/svn/backgroundrb
Mailing list: http://rubyforge.org/mailman/listinfo/backgroundrb-devel
Searching...





Ezra, Thanks a ton for your work with backgroundrb...it helped form the core of our RailsDay 2006 application, Heartbeat, a web control panel for Rails applications: http://heartbeat.highgroove.com
Very cool Derek.
ogłoszenia nieruchomości, nieruchomości, nieruchomości warszawa, wynajem mieszkań warszawa, wynajmę mieszkanie
Ezra, fantastic work on BackgrounDrb. We had a serious amount of iterative number crunching we wanted to do as part of our site, but the reponse times made it impossible. In one day (yesterday) we found your plugin, created a worker to wrap our crawler and got it deployed as it's own tier in our env. And your AJAX example with the progress bar makes the user experience seamless. Huge thanks! Great design.
This is looking really good, I can't wait to getting a bit of time to look at this, especially considering that ActiveRecord barfs sometimes if you just hack together something using normal Ruby Threads due to the nature of the MySQL adapter.
good Site, many greetings from Germany Einbeck Teeladen Schwarzer Tee