Does the trick.

Thanks!


On Wednesday, December 25, 2013 11:23:21 PM UTC+2, John Mettraux wrote:
>
>
> On Wed, Dec 25, 2013 at 08:30:41AM -0800, Idan Moyal wrote: 
> > 
> > Is it possible to retry a participant on error infinite number of times 
> > every x seconds? 
>
> Hello Idan, 
>
> not really the infinity, not even close: 
>
> ``` 
>   sequence do 
>     set :max => 1073741823 
>     set :x => 12 # seconds 
>     toto :on_error => '${v:x}s: retry * ${v:max}' 
>   end 
> ``` 
>
> cf http://ruote.io/common_attributes.html#on_error_composing 
>
> Another way: 
>
> ``` 
>   sequence do 
>     set :x => 12 # seconds 
>     cursor do 
>       toto 
>       sequence :if => '${f:error}' do 
>         wait '${v:x}s' 
>         rewind 
>       end 
>     end 
>   end 
> ``` 
>
> (note to self, 
>
>   rewind :after => '12s' 
>
> is quite readable.) 
>
>
> 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/groups/opt_out.

Reply via email to