search for: get_progress

Displaying 8 results from an estimated 8 matches for "get_progress".

2006 Oct 18
0
Please help with 2 (related?) problems
...I am getting the following error as the first thing that happens in my background logger: Connection reset by peer - (DRb::DRbConnError) What might be the common causes of this error? The second problem that I''m having, which I suspect may be related, is that my view tries to call the get_progress action, but doesn''t get a response. In the view file I have: <%= periodically_call_remote(:url => {:controller => ''parser'', :action => ''get_progress''}, :frequency => 1) %> And in the parse...
2007 Sep 24
3
Trouble using backgroundrb
...39;'default'' def index $subtitle = "AIX user inventory tool" end def createReport Passwdentry.delete_all User.delete_all session[:job_key] = MiddleMan.new_worker(:class => "passwd:get_passwds_worker", :args => "") end def get_progress if request.xhr? progress_percent = MiddleMan.get_worker(session[:job_key]).progress render :update do |page| page.call(''progressPercent'', ''progressbar'', progress_percent) page.redirect_to( :action => ''done'') if...
2006 Aug 16
1
newbie needs help
...ed numberous of Ezra''s examples that I was able to find online. The best I''m able to get is nothing happens and development log says: NoMethodError (undefined method `progress'' for #<PingWorker:0x3a786c0>): /app/controllers/operations_controller.rb:13:in `get_progress'' Any ideas? I''m sure there''s a basic thing I''m not doing right... but I couldn''t figure out what that might be, based on the documentation. [mp]
2006 Jul 24
0
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...ploading song...") @song = Song.new(params[:song]) @song.member_id = session[:member_id] @song.save redirect_to :action => ''edit_songs'' end In my view, within the form parameters I have: <%= periodically_call_remote(:url => {:action => ''get_progress''}, :frequency => 1) %> which calls the below method: def get_progress if request.xhr? progress_percent = MiddleMan.get_worker(session[:job_key]).progress render :update do |page| page.call(''progressPercent'', ''progressbar'',...
2007 Mar 07
10
MiddleMan.worker blocks?
..., :start_time => start_time, :report_params => report } # For reasons unknown, the following seems to block! session[:xml_report_job] = MiddleMan.new_worker(:class => :xml_report_worker, :args => args) end def get_progress ... worker = MiddleMan.worker(session[job]) end ... end class XmlReportWorker < BackgrounDRb::Worker::RailsBase include DRbUndumped ... def do_work(args) @progress = 0 @report_start_time = args[:start_time] @report_params = args[:report_params]...
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...ploading song...") @song = Song.new(params[:song]) @song.member_id = session[:member_id] @song.save redirect_to :action => ''edit_songs'' end In my view, within the form parameters I have: <%= periodically_call_remote(:url => {:action => ''get_progress''}, :frequency => 1) %> which calls the below method: def get_progress if request.xhr? progress_percent = MiddleMan.get_worker(session[:job_key]).progress render :update do |page| page.call(''progressPercent'', ''progressbar'',...
2006 Aug 16
7
Forward of moderated message
...online. The best I''m able to get is nothing happens and >>> development log says: >>> >>> NoMethodError (undefined method `progress'' for #<PingWorker: >>> 0x3a786c0>): >>> /app/controllers/operations_controller.rb:13:in `get_progress'' >>> >>> Any ideas? I''m sure there''s a basic thing I''m not doing >>> right... but I couldn''t figure out what that might be, based on >>> the documentation. >>> >>> [mp] >>> >>&...
2010 Jul 02
1
Progress bars
...Library changes --------------- On receiving a status message, the library can ignore it, or can: (1) update the total and current fields in the guestfs_h handle, and/or (2) call a prearranged callback function. We would add a way to query these numbers for an existing handle: void guestfs_get_progress (guestfs_h *g, int64_t *total, int64_t *current); Callers can poll this function on any open handle from any thread to retrieve the progress of the currently running call. [Side note: In general you cannot call libguestfs APIs from multiple threads: http://libguestfs.org/guestfs.3.html#multiple_h...