On Fri, Feb 15, 2008 at 9:34 AM, Sanjay Tibrewal <[EMAIL PROTECTED]> wrote: > > > > Resending this message – I sent it earlier in the day and I still don't see > it show up on the mailing list. > > Thanks. > > ----------------------------------------- > > Hello Folks, > > I have been trying to get backgroundrb running on my Win XP box to > periodically wakeup and run a worker function. I wrote a test Worker class > as below and my backgroundrb.yml is included below. I can start backgroundrb > successfully through commondline (ruby script/backgroundrb/start) but I > don't see any output in my backgroundrb.log – I would expect the "Hello" > string in the log every 5 secs. > > The first question I have is, whether what I am doing even supported on > Windows? Reason I ask is because I saw a post from a few months back saying > something to the effect that forking doesn't happen on Windows (a reply > email from Hemant) so not sure how that affects what I am trying to do. > > The follow up question, if the answer to the first one is yes it is > supported, is what am I doing wrong here? > > Appreciate any pointers/help. > > Thanks, > > Sanjay. > > class NehronWorker < BackgrounDRb::Rails > > #set_worker_name :nehron_worker > > def create > > puts "Creating NehronWorker" > > end > > def do_work(args) > > # This method is called in it's own new thread when you > > # call new worker. args is set to :args > > puts "Hello" > > end > > def printhelloinloop(teststr="Hello2") > > puts "Hello "+ teststr > > end > > end > > --- > > port: "22222" > > timer_sleep: 60 > > load_rails: true > > environment: development > > host: localhost > > database_yml: config/database.yml > > acl: > > deny: all > > allow: localhost 127.0.0.1 > > order: deny,allow > > > > schedules: > > NehronWorker: > > printhelloinloop: > > trigger_args: */5 * * * * * *
Any version of BackgrounDRb > 0.2 is not supported/won't run on Windows. It may change in future, but its not a priority. _______________________________________________ Backgroundrb-devel mailing list [email protected] http://rubyforge.org/mailman/listinfo/backgroundrb-devel
