On Wed, Apr 27, 2011 at 06:22:31PM -0700, Tom wrote:
> 
> I'm trying to test the workflow we have using cucumber. It all works
> fine, the only annoying thing is that the worker seems to hang for
> about 2 minutes while being in some (random) participants.
> 
> This is how we instantiate the engine:
> 
>     Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new))
> 
> Does anyone know why this is happening?

Hello Tom,

What do your participants look like ?

Have you tried to do

  engine.noisy = true

To determine if it's really hanging "while begin in some (random) participants".

What does the stack trace look like when you interrupt the hanging worker ?

> Is there a way to manually
> trigger the worker to move on?

The worker's run method looks like

  def run
    step while @running
  end

so you could do

  engine.worker.send(:step)


Best regards,

-- 
John Mettraux - http://jmettraux.wordpress.com

-- 
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