Displaying 4 results from an estimated 4 matches for "middle_man".
Did you mean:
middle_len
2006 Aug 07
2
Autostarting and job keys...
I''ve now got 5 processes auto started. But I when I query the
MiddleMan for their keys (in script/console), it doesn''t find them.
Looking at the start script, it looks like it might be creating a new
MiddleMan object for each autostart
BackgrounDRb::MiddleMan.new.new_worker(:class => entry[''class''],
Even changing it to
2006 Jul 07
1
uninitialized constant MiddleMan
..._ROOT}/app/models/client_dispatch.rb:3:in `get_worker''
#{RAILS_ROOT}/app/models/event.rb:93:in `save_all_from_url!''
#{RAILS_ROOT}/app/controllers/events_controller.rb:16:in `create''
/usr/local/bin/mongrel_rails:1
This error occured while loading the following files:
middle_man.rb
Supposedly I dont have middle_man.rb any ideas?
Thanks for your help.
Thank You,
Ben Johnson
E: bjohnson at contuitive.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060707/66b9a868/attach...
2008 Sep 24
1
Clearing cached results
I''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
2008 Jun 06
1
Unexpected NameError when invoking task on worker
...a6 ~/testapp]$ ruby script/console
Loading development environment (Rails 2.0.2)
>> MiddleMan
=> #<BackgrounDRb::WorkerProxy:0x8675b6c @mutex=#<Mutex:0x8675b44>>
>> worker = MiddleMan.worker(:basic_worker)
=> #<BackgrounDRb::RailsWorkerProxy:0x995f78c @job_key=nil,
@middle_man=#<BackgrounDRb::WorkerProxy:0x8675b6c
@mutex=#<Mutex:0x8675b44>>, @worker_name=:basic_worker>
>> worker.keep_count
=> nil
>> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:266:in `load_missing_constant'': uninitialized...