On 11/3/06, <b class="gmail_sendername">Phil Mayers</b> &lt;<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yi Qiang wrote:<br>&gt; This is the part where I stumble on though, the exact implementation of<br>&gt; how to make it so that one calls back the other.<br><br>One what calls back the other what?<br><br>You'll have issues with error handling and dropping workers if you're
<br>not careful to chain the deferreds correctly. I would try something like<br>this personally. ...</blockquote><div><br>Hi Phil,<br>Sorry it took me so long to get back to you.&nbsp; Thanks for your suggestion, but the thing I was trying to avoid is to have the Workers communicate with the PB server.&nbsp; There could be potentially many workers and when I thought about the problem, it seemed cleaner to design something where the client consisted of a 'Monitor' and 'Workers'.&nbsp; The monitor connects to the server, gets jobs, distributes jobs to the workers and watches for workers who finished their jobs.&nbsp; What do you think of this design?&nbsp; It is obviously a little more convoluted to program but might be easier to deal with in the future.&nbsp; I have little programming experience so this is all speculation from my side.&nbsp; Any insight would be greatly appreciated.
<br></div><br><div>Thanks,<br>Yi<br>&nbsp;</div></div><br>