Displaying 1 result from an estimated 1 matches for "wiki_scrap_url".
2008 May 20
1
Couple questions on BDRb and concurrent processing
...a couple of questions:
1. Can someone point me to some sample code/examples for how to use
thread_pool? The website doc says to add a line
======
pool_size 10
======
in my Worker class which seems straightforward.
I wasn''t able to understand this part though:
=========
thread_pool.defer(wiki_scrap_url) { |wiki_url| scrap_wikipedia(wiki_url) }
=========
Can someone explain this code please? And where does this code go? In my
Rails method that''s actually kicking off the b/g process? Right now my
method looks likke this
======
....
worker = MiddleMan.worker(:netflix_worker)...