search for: background_task

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

2007 Sep 30
0
Patch: background_tasks.rake
Hi, * Background I develop rails app with backgrounDRb where one of its parent folders has a space in its name. * Problem rake backgroundrb:start and rake backgroundrb:stop do not work * Analysis This is because the line for start and stop in backgroundrb_tasks.rake do not quote #{scripts_src} * Patch Quote the #{scripts_src} in the two lines so they become
2006 May 15
10
BackgrounDRb background task runner and Application Wide Context Store
...ess: #{@progress}" @progress end end Your worker classes go into the RAILS_ROOT/lib/workers/ directory. You can then use your worker class in rails like this: # in a controller # start new worker and put the job_key into the session so you can # get the status of your job later. def background_task session[:job_key] = MiddleMan.new_worker(:class => :foo_worker, :args => {:baz => ''hello!'', :qux => ''another arg!}) end def task_progress if request.xhr? progress = MiddleMan.get_worker(session[:job_key...
2006 Aug 16
7
Forward of moderated message
...end > > end > > [ operations_controller.rb ] > > class OperationsController < ApplicationController > sidebar :general > sidebar :operations > > # start new worker and put the job_key into the session so you can > # get the status of your job later. > def background_task > session[:job_key] = MiddleMan.new_worker(:class => :ping_worker, > :args => {:baz => > ''hello!'', :qux => ''another arg!''}) > end > > def task_progress > if request.xhr? > pr...