From: Ezra Zygmuntowicz Date: 2007-04-03T08:14:53+09:00 Subject: Re: updating an RJS template _while_ executing a method On Apr 2, 2007, at 9:37 AM, Ryan Leavengood wrote: > On 4/2/07, Matthieu Stone wrote: >> Ah.. In that case you need to start you long running routine >> outside of >> rails. Something like backgroundrb, http:// >> backgroundrb.rubyforge.org/ > > This is what we do in the Rails app I'm working on. We call a long > running series of SOAP API calls from BackgrounDRb and then a periodic > executor on the page calls a "progress" function which queries the > BackgrounDrb worker to get the current progress. This works pretty > well. > > Though I was very annoyed to see the latest version of BackgrounDrb is > not supported on Windows. We deploy on Linux but develop on Windows so > we are stuck on the last release. If you are listening Ezra, it would > be nice if you could fix this :) > > Ryan > Ryan- I'd love to be able to get the new version to run on windows but I wasn't ever able to get it to work except for in cygwin. The reason being is the new version uses a multi process arch instead of a single process multi threaded. I rely heavily on ara's slave gem for this which handles forking child processes with drb handles from the parent -> child and child -> parent. As far as I know slave just can't work on windows yet. I will however soon be releasing a bdrb lite that is a revamped version of the old plugin that will be windows compatible. It's just inherently limited by ruby's green threading model. So running many concurrent jobs degrades the performance of all jobs :/ I would love to be proven wrong and shown how I could get the newest version with the slave dep to run on windows though. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez@engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)