search for: upload_worker

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

2008 Mar 19
2
problem with worker status
...I have a page were users can start jobs that may take several hours to run. BackgrounDrb is perfect for me and seems to be working well most of the time but some times I have the following problem: My worker is set up like this: class UploadWorker < BackgrounDRb::MetaWorker set_worker_name :upload_worker set_no_auto_load(true) def create(args = nil ) file = args[:file] sample_id = args[:sample_id] @user_id = args[:user_id] @submission_time = Time.now percent_complete = 0 total_count = get_total_count(file) register_status(:percent_complete => percent_comp...
2006 Jul 24
0
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...n => ''edit_songs'' end The question is, do I create the session[:job_key] within this method like so: ?? def upload_song # I know my :args is probably wrong. What is the correct argument for args in this case? session[:job_key] = MiddleMan.new_worker(:class => :upload_worker, :args => "Uploading 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 => {:ac...
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
...arams[:song]) @song.member_id = session[:member_id] @song.save redirect_to :action => ''edit_songs'' end The question is, do I create the session[:job_key] within this method like so: ?? def upload_song session[:job_key] = MiddleMan.new_worker(:class => :upload_worker, :args => "Uploading 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 => {:ac...