On Sat, Jun 7, 2008 at 2:29 AM, Corin Moss <[EMAIL PROTECTED]> wrote:
>
> Is there any major side-effect to having a configurable wait for in the
> post "/processes" block?  Or should there perhaps be a blocking engine
> implementation?

Hello Corin,

sorry for the late reply.

You mean something like this :
http://github.com/jmettraux/ruote-rest/tree/wait_for/lib/res/processes.rb#L52-65
?

I think there should be no major problem.

Things to watch :

- you have to manage client timeout
- the process could terminate right before wait_for is called
(wait_for would wait indefinitely)
- wait_for will not reply in case of error in the process

I'll probably have to refine the wait_for method in the engine itself
(adding a timeout and stopping the wait in case of exception).

I'd be happy to help you with this use case. I'm looking forward to
general feedback on ruote-rest as well. Your prototyping approach
looks very interesting.


Best regards,

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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to