search for: worker_nam

Displaying 8 results from an estimated 8 matches for "worker_nam".

Did you mean: worker_name
2008 Sep 24
1
Clearing cached results
...'m trying to figure out how to clear the for a worker from my controller. In my aysnc_xxx process I set cache[key]. However, I don''t see an easy way to clear the cache from a controller with invoking something on the worker. What I was looking for was something like MiddleMan(:worker_name, :worker_key_name).cache[key]= Is there something like that and I''m just missing it or do I need to create a "clear_cache" function on my worker and call that when I need to clear the cache? Thanks, Curtis
2007 Dec 20
1
More pleasant / concise API
...mall suggestion : The following apis could be a bit more concise / shorter / pleasant I thought. This is particularly difficult, my brain stumbles on this each time when scanning thorugh the code :) set_no_auto_load(true) Could it be two apis instead? auto_load no_auto_load and the other one : worker_name :important_worker (no set_ prefix) thanks, emil
2009 Mar 27
1
UTF8 postgres args saving issue
...string): F.\src\backend\utils\mb\wchar.c L1545 Rreport_invalid_encoding: INSERT INTO "bdrb_job_queues" ("args", "job_key", "taken", "worker_key", "worker_method", "priority", "finished_at", "tag", "worker_name", "timeout", "submitted_at", "finished", "runner_info", "submitter_info", "archived_at", "scheduled_at", "started_at") VALUES(E''{:car_idi?:inspection_report_name"First week inspection'', E...
2008 Jan 17
3
periodic scheduling
I''ve been using backgroundrb since back in March 2007 or so. It''s been working mostly OK for me, but since the old version doesn''t seem to work out of the box with rails 2.0 for me, I decided to test out the latest version. So, I''m looking at the scheduling, and trying to figure out the best option for what I want to do. What I have is a set of workers that
2008 Jun 06
1
Unexpected NameError when invoking task on worker
...lso attaching a text file with the output below since it might be easier to see it in that format. config/backgroundrb.yml :backgroundrb: :ip: 0.0.0.0 :port: 11009 :environment: development :log: foreground lib/workers/basic_worker.rb class BasicWorker < BackgrounDRb::MetaWorker set_worker_name :basic_worker def create(args = nil) # this method is called, when worker is loaded for the first time end def keep_count count = 1 end end Then I am starting BackgrounDRb and using the console to invoke the worker, but run into this problem, and not sure what is going on: [d...
2007 Dec 06
10
Feedback on RC2
I tried to upgrade my existing application to RC2 last night. Like many, I use this mostly for running scheduled tasks. For the moment, I''ve abandoned the effort, but am looking forward to being able to use this. Feedback below: First, the reason I was looking forward to this upgrade was to use the threaded scheduler. I have an application with long-running tasks. I found that
2007 Nov 12
0
Workers calling Workers
...elevant code and error. The exception is being thrown on the last line of the code: producer_args = {:report_id => report.id, :args => YAML.load(report.args)} producer_args.merge!(:debug_mode => true) if @debug_mode task.middleman.new_worker(:class => "#{task.worker_name}_#{TaskManager::Task::WORKER_POSTFIX}".to_sym, :job_key => producer_key, :args => producer_args ) producer = task.middleman.worker(producer_key) # Logfile created on Fri Nov 09 17...
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
...le log workers 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 +...