search for: singleton_work

Displaying 2 results from an estimated 2 matches for "singleton_work".

Did you mean: singleton_worker
2006 Aug 23
5
Singleton-like Worker
Hello there, I need a Worker Class to be Singleton-like, that means there must be at maximum one Instance at a time. When a new Request is made to create another worker of this type, it should return and wait for the other instance to be destroyed. what i need to do: i have a worker who needs to do sth with java and openoffice, and it seems when i have more tha one worker simultaneously,
2006 Jul 13
4
Update
...ver. Even if you call new_worker more then once with the same :class and it is a singleton worker, it will just return the one worker instance. Use like this: MiddleMan.new_worker(:class => :foo_worker, :args => "Bar", :job_key => :singleton_worker, :singleton => true) Cheers- -Ezra