Woah this is better than I could have hoped for! Coming from the world of vanilla ruby state machines (e.g. I wrote https://github.com/ghempton/state_manager), your library never ceases to amaze me.
Thanks! On Friday, November 9, 2012 2:03:04 PM UTC-8, John Mettraux wrote: > > > On Fri, Nov 09, 2012 at 01:41:40PM -0800, Gordon Hempton wrote: > > > > I have a process in which I want to retry participants a finite number > of > > times before passing. I could just use `:on_error => 'retry'` but this > > results in an infinite loop. How would one go about implementing this > type > > of process definition? > > Hello Gordon, > > welcome to the ruote mailing list. > > Thanks for asking that question. It helped me notice that this is an > undocumented feature. > > You can do things like > > alpha :on_error => '1s: retry * 3' > > It will wait for 1 second and retry, and this 3 times (* 3). > > The test file for this feature is at > > > https://github.com/jmettraux/ruote/blob/master/test/functional/ft_71_retries.rb > > > I think it's OK to write "retry * 3" (if not, please tell me or submit an > issue). > > > Thanks a lot! > > -- > 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
