search for: percent_complet

Displaying 7 results from an estimated 7 matches for "percent_complet".

Did you mean: percent_complete
2008 Mar 19
2
problem with worker status
...m: 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_complete, :total => total_count) <<< some long running task >>> exit end end Now when I fire up the backroundrb server and a rails console and ask for a new worker like this...
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
..._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 logger.info "Thumbnail generation is #{percent_complete}% complete..."...
2006 Apr 28
5
Newbie: using date-picker
Finally found a nice date chooser script (http://projects.exactlyoneturtle.com/date_picker), but am a little confused how to implement it. So I put this where I need the date picker: <a id="_name_link" href="#" onclick="DatePicker.toggleDatePicker(''name'')" class="demo_link">[ choose date ]</a> <div
2006 Jan 25
7
Global Data, where can it go?
I''m developing a stateful Ruby application that needs to keep data in one location where all people accessing the site can modify its contents. This data will be read-from/written to often, so I would prefer for rails to keep it in memory, rather than a database. My frist try involved global variables. After discovering that they were being "re-initialized" with each new
2006 Apr 22
0
Newbie - list based on joined query?
I''m retrieving a list of tasks to display in a page using @delegatedtask_pages, @delegatedtasks = paginate :tasks, :conditions => "user_id = " + session[:user_id].to_s + " percent_complete <> 100", :order_by => ''due_on asc'' I''d like to only list the tasks which have been assigned to other people. I have a table called assigned_tasks which links my tasks to the users. A straight SQL query to accomplish this might be SELECT * FROM tasks IN...
2015 Mar 04
3
supermin on arm
...BaseImage > > thread(MainThread) Message: Executing metadata in class (<class > > 'imgfac.BaseImage.BaseImage'>) my metadata is (('identifier', > > 'data', 'template', 'icicle', 'status_detail', 'status', > > 'percent_complete', 'parameters', 'properties')) 2015-03-03 > > 17:02:52,025 DEBUG > > imgfac.FilePersistentImageManager.FilePersistentImageManager > > thread(MainThread) Message: Saved metadata for image > > (03355f6f-33f4-410f-824a-eaddf3fb1767): {'status': '...
2006 Mar 21
3
Newbie - ActiveRecord relationships
...''0000-00-00'', `user_id` int(4) NOT NULL default ''0'', #Task owner `client_id` int(4) NOT NULL default ''0'', `type_id` int(4) NOT NULL default ''0'', `urgent` tinyint(4) default NULL, `on_hold` tinyint(4) default NULL, `percent_complete` int(4) NOT NULL default ''0'', PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`), KEY `client_id` (`client_id`), KEY `type_id` (`type_id`), KEY `user_id` (`user_id`) ) TYPE=InnoDB AUTO_INCREMENT=1 ; #For M:M relationship between tasks and users, for the task assignment...