On Tue, Jun 19, 2012 at 12:29:11PM -0700, ddeng wrote: > > I have following code: > > pdef = Ruote.process_definition do > sequence :on_error=>:error_report do > alpha :id => "alpha", :timers => "1s: reminder, 2s:error" > bravo :id => "bravo" > end > end > > (...) > > my intentions are: > 1. in 1 sec send a reminder to alpha > 2. in 2 sec, cancel the process and the "error_report" handler comes in to > do the housekeeping work. > > The problem is: > When I say "item.error.inspect" in the error_report handler, it gives > me: "class"=>"Ruote::ForcedError", "message"=>"error triggered from process > definition". Which is not helpful when I want to know that the error is > triggered by a timeout from alpha
OK, please fill an issue about that and I'll come up with something: https://github.com/jmettraux/ruote/issues > btw: I tried > alpha :id => "alpha", :timers => "1s: reminder, 2s:timeout" > but the process is not interrupted when timeout happened. Yes, that's the expected behaviour. (Although the workitem goes on with a __timed_out__ field set). Thanks in advance, -- John Mettraux - http://lambda.io/jmettraux -- 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
