> Hello Yoanne/_Taz_,

First, thanks for your quick answer.

> here is an updated version:
>
>  https://gist.github.com/1157286
>
> It uses ruote and ruote-redis "edge" (github master).
>
> Your version was not working because
>
> a) (my fault) redis storage couldn't be registered as EngineParticipant, 
> since they relied on instance of ::Redis, the latest ruote-redis (edge) fixes 
> that. Sorry.
>
> b) Your slave and master were pointing to the same redis database (:db => 
> 14), making them the same engine...
>

Well, I thought the engines have to share the same storage in order to
dispatch the workitem(s?) to each other.

The next step is top split the file in 2 : one for the master, one for
the slave
https://gist.github.com/fde55543f8a018373fac

I launch the slave engine with "ruby slave.rb", and then the master
with "ruby master.rb"
The master continue until its end, but the slave doesn't.

6 88     di * emit_results 20110822-hihijere 4353f 0_0 {:wi=>["0_0!
4353f2522332b61b8ecd32c71d46dddc!20110822-hihijere", 8],
"participant"=>["ResultParticipant", {}],
"participant_name"=>"emit_results"}
7 88     rc * emit_results 20110822-hihijere 4353f 0_0 {:wi=>["0_0!
4353f2522332b61b8ecd32c71d46dddc!20110822-hihijere", 7],
"participant_name"=>"emit_results", "receiver"=>"ResultParticipant"}
8 88     dd * 20110822-hihijere 4353f 0_0
{"participant_name"=>"emit_results"}
9 88   re * 20110822-hihijere 10089 0 {:wi=>["0!
1008905d5e858bcf79e0088443dab087!20110822-hihijere", 7],
"updated_tree"=>nil}
0 88     re * 20110822-hihijere 3f4eb 0_2 {:wi=>["0!
1008905d5e858bcf79e0088443dab087!20110822-hihijere", 7],
"updated_tree"=>nil}

I know the problem comes from the wait_for method; it's the only way
to launch a process as far as I'm aware.

Likewise, could you write an example with 1 engine and multiple
workers?
> > Thank you in advance for any help, I'm completely stuck on that for 2
> > weeks now.
>
> Why didn't you ask for help two weeks ago ?
>

Read a lot of documentation, tried to understand the few examples I
could find. At least it gives me more information to write on my
internship report. :)

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

Reply via email to