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