Displaying 1 result from an estimated 1 matches for "thumbnail_generator_work".
Did you mean:
thumbnail_generator_worker
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...s and other logging
:production:
:backgroundrb:
:port: 33333 # use port 33333
:lazy_load: true # do not load models eagerly
:debug_log: false # disable log workers and other logging
My worker:
class ThumbnailGeneratorWorker < BackgrounDRb::MetaWorker
set_worker_name :thumbnail_generator_worker
set_no_auto_load(true)
def create(args = nil)
register_status(:percent_complete => 0)
args.each_with_index do |uploader_id, index|
@uploader = Uploader.find(uploader_id)
@uploader.generate_thumbnails
percent_complete = ((index + 1) * 100) / args.length...