On Thu, Aug 25, 2011 at 08:46:18AM -0700, Girardin Yoanne wrote:
>
> This is a small test i've run on our grid
>
> https://gist.github.com/e92e61f89e849119d762

Hello Yoanne,

I did a clean up of your code:

  https://gist.github.com/1171041

Please consider using the standard ruby two-spaces indentations, please avoid 
using tabs.

> The CopyParticipant (name to be changed soon) register the register
> the slave in the master engine and then launch the slave. But it
> doesnt work, both process are stuck.

I guess it's because the SSH call doesn't return.

  ssh.exec("ruby /root/test_ruote/slave.rb > slave.log 2>&1 &")

could help, the last ampersand tells the process to execute in the background, 
and it will let your ssh.exec() return.

> But it doesnt work, both process are stuck.

Please consider gathering enough information before submitting an issue. At 
some point you'll run into stuff that I won't be able to test/debug for you. 
Also you need to get a feel for your code, "it doesn't work" doesn't cut it. 
"the process is stuck" doesn't cut it. We both know that you can give me more 
information about the issue. Formulating that information is a very important 
exercise for you. I wrote many detailed issue reports only to find flaws in my 
own reasonings, thus getting back to my code and not sending the issue report.

I might be helpful but I won't always be around.

This is a very nice read : http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

I was expecting information about where it stuck. I repeat, at some point, 
you'll run stuff on your grid and I won't be able to help you by running code, 
I'll have to read logs.

> Also, is it possible to call a subprocess on another engine within a
> concurrent_iterator loop?

Yes.


Kind regards,

--
John Mettraux - http://lambda.io/processi

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwferu-users@googlegroups.com
to unsubscribe : send email to openwferu-users+unsubscr...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to