search for: calculate_the_meaning_of_lif

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

2006 Oct 17
6
Session access interfers with other model access
...: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
2006 Aug 16
7
Forward of moderated message
...p/controllers/operations_controller.rb:14:in `task_progress'' > > Here''s the code -- > > [ /lib/workers/ping_worker.rb ] > > class PingWorker < BackgrounDRb::Rails > > attr_accessor :progress > > def do_work(args) > @progress = 0 > calculate_the_meaning_of_life(args) > kill > end > > def calculate_the_meaning_of_life(args) > while @progress < 100 > @progress += 1 > end > end > > end > > [ operations_controller.rb ] > > class OperationsController < ApplicationController > sidebar...