Method: BackgroundQueue::Worker::Base#set_progress

Defined in:
lib/background_queue/worker/base.rb

#set_progress(caption, percent) ⇒ Object

update the progress of the currently running task



19
20
21
22
23
# File 'lib/background_queue/worker/base.rb', line 19

def set_progress(caption, percent)
  #puts self
  #puts "env=#{self.environment}"
  self.environment.send_data({:caption=>caption, :percent=>percent}.to_json)
end