search for: time_remain

Displaying 3 results from an estimated 3 matches for "time_remain".

2007 Feb 20
1
error message for record not found ?
...9;' C:/InstantRails-1.3/ruby/lib/ruby/1.8/drb/drb.rb:1344:in `initialize'' C:/InstantRails-1.3/ruby/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' script/backgroundrb/start:108 ------------ Worker code ---------- class SessionWorker < BackgrounDRb::Rails attr_reader :time_remaining def do_work(args) @time_remaining = args[:initial_setting].to_i @emrec_id = args[:emrec_id] @session_id = args[:session_id] @session_rec = Session.find(:first, :conditions => ["sessid = ?", @session_id]) watch_session(args)...
2006 Oct 17
6
Session access interfers with other model access
...ion_id session[:job_key] = MiddleMan.new_worker(:class => :foo_worker, :args => {:emrec_id => @emrec.id, :session_id => @session_id}) In my worker... def do_work(args) @time_remaining = 7 @emrec_id = args[:emrec_id] #@session_rec = Session.find(:first, # :conditions => ["sessid = ?", args[:session_id]]) calculate_the_meaning_of_life(args) Emrec.delete(@emrec_id) end
2006 Oct 16
6
accessing session data in worker
Is there something special I need to do to access session data in a worker? I''m using an AR session store. I''ve been working with Ezra''s tutorial, modifying it a little here and there to figure it out. So I changed the progress bar to a simple count-down in the worker which sends back the count to display in the view. No big deal. But if I try to access session