On Tue, Apr 15, 2014 at 03:44:55PM -0700, Yiping Zhang wrote:
>
> Assuming participant's do_not_thread() returns false,  worker instance
> would run above concurrent sample workflow in two new threads, correct ? In
> this situation, going back to my original question, since I want to restart
> worker instance,  I still need to know if those two threads, handling
> step_a and step_b respectively, have completed their respective work or not

If do_not_thread returns false, the participant "consume" operation will not
happen in a new thread. It'll happen in the current, worker, thread. IIRC.

If you tell #shutdown to a worker, it will return has soon as it has finished
processing the current message. If it isn't processing a message it will
return immediately. Notice the #join at the end of #shutdown.

Best regards.

John

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to