in reply to retrying an action that could fail

The only thing I would add is a sleep $SLEEP at the end of your loop. Some issues will already have a timout effectively built in but some may benefit from a brief respite (say 503 and 504 errors)

cheers

tachyon

Replies are listed 'Best First'.
Re: Re: retrying an action that could fail
by perrin (Chancellor) on May 24, 2004 at 03:57 UTC
    Hmm, maybe an optional additional sub ref for what to do in order to reset between tries would be a good way to handle this. Then I could pass in a sleep call in there if I need one.