search for: worker_key

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

2008 Sep 08
2
Problems with async worker request
...synchronous pdf creation, but in doing so, I''ve run into a very strange problem. Below is a method that''s called from the controller which creates a new worker, then grabs the worker and calls the ''build_pdf'' method asynchronously. def make_pdf(template_path, worker_key) with_empty_asset_id do html_string = render_to_string(:template => template_path, :layout => ''pdf'') key = MiddleMan.new_worker(:worker => :prince_xml_worker, :worker_key => worker_key) MiddleMan.worker(:prince_xml_worker, key).async_build_pdf(:ar...
2008 Sep 24
1
Clearing cached results
...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
2009 Feb 16
1
MiddleMan.new_worker => nil
I''ve been checking out all the async gems and plugins for Rails, and decided to give BackgroundRb a shot. Unfortunately, I''ve not even been able to get past the initial stages. Whenever I call MiddleMan.new_worker, it invariably returns nil. The log file remains empty. I''ve only tried this from the console so far. If I can''t even do this successfully,
2006 Dec 07
2
backgrounDRb problems with results and MiddleMan
...issue is that I''m trying to create an after_filter to a controller that looks for any "keys" saved to the session and then load the worker class to query status (assuming that "response" actually worked..). When I try to re-substantiate the worker using MiddleMan.worker(worker_key) I get an error reporting that worker is not a method of MiddleMan. NoMethodError (undefined method `worker'' for #<BackgrounDRb::MiddleMan:0x146377c>): /app/controllers/workbench_controller.rb:31:in `get_rid_of_workers'' All the rdoc documentation I''ve read f...
2009 Mar 27
1
UTF8 postgres args saving issue
...coding". Here''s the SQL that gets send to the database (note that the dump-ed args are written as a 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", &qu...
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation on what this method returns (1.0.1 version). Orion -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2007 Apr 04
6
Exception when doing DRb remote calls from a BackgrounDRb worker
Hello, I am trying to make DRb calls to a external server from a backgrounDRb worker, but I''m getting always the next exception when I make the remote call. > ERROR: > drbunix:///tmp/backgroundrb.11175/experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928422051 > - #<Errno::ENOENT: No such file or directory - >