<div dir="ltr"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 17, 2013 at 12:16 PM, Andreas Buhr <span dir="ltr"><<a href="mailto:andreas@andreasbuhr.de" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=andreas@andreasbuhr.de&cc=&bcc=&su=&body=','_blank');return false;">andreas@andreasbuhr.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
wow, thanks a lot for your help, that's great.<br>
<div class="im"><br>
On 10/17/2013 09:06 PM, MinRK wrote:<br>
> A notebook illustrating both approaches<br>
</div>> <<a href="http://nbviewer.ipython.org/7030408" target="_blank">http://nbviewer.ipython.org/7030408</a>><br>
<br>
>From inside of those member functions, can I spawn new tasks? Can I just<br>
get a new 'Client()', even when I am on a worker?<br></blockquote><div><br></div>You can create a client and submit new tasks from there,<div>though there can be hazards associated with that in terms of the number of sockets created.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
And if I spawn a new task on a worker, and that new task is to be<br>
executed on the exact same machine, is there a way to execute that task<br>
without going back to the HUB/scheduler?<br></blockquote><div><br></div><div>If you spawn new tasks, they are submitted in exactly the same way as all other tasks via the scheduler. If you want it to run on the same machine that's submitting the task, why not just call the function directly?</div>

<div><br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
thanks a lot again,<br>
<div class=""><div class="h5">best regards,<br>
Andreas<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=IPython-dev@scipy.org&cc=&bcc=&su=&body=','_blank');return false;">IPython-dev@scipy.org</a><br>


<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div></div>