<div dir="ltr">That's interesting. If you are doing engine assignment yourself, I would probably say that you should have that logic at a level slightly higher than IPython. Then on task submission, you can call out to a function directly if your code determines that it should be run locally rather than submitted via IPython.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 12:34 PM, Andreas Buhr <span dir="ltr"><<a href="mailto:andreas@andreasbuhr.de" target="_blank">andreas@andreasbuhr.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi MinRK,<br>
<div class="im"><br>
On 10/17/2013 09:20 PM, MinRK wrote:<br>
><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>
><br>
><br>
> If you spawn new tasks, they are submitted in exactly the same way as<br>
> all other tasks via the scheduler. If you want it to run on the same<br>
> machine that's submitting the task, why not just call the function directly?<br>
<br>
</div>Because I would like to have also task priorities and there might be<br>
tasks with higher priority waiting. Are there task priorities in IPython?<br>
Also because I would not like the task spawner to know where the task<br>
will be executed. At the end, I'd like to say "Call function A on object<br>
B with arguments C", and the system I am about to create should carry<br>
the task to B's home and execute it there. And it should not go over the<br>
wire if B happen to live on the same machine.<br>
<br>
Thanks again for your help :-)<br>
<div class="HOEnZb"><div class="h5"><br>
best regards,<br>
Andreas<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">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>