Delay Only When Needed for Retry
Essentially, what I want to do is try a command, if it works then great move on, but if it fails, wait a bit before retrying again. As it stands, it's possible to write a section that has two steps, a delay and a command, and then set that section to have retries, but I'm hoping that there's a way to do this without waiting before the first attempt, only waiting before the second and all subsequent attempts.
-
Official comment
Something like this should work:
- ident: SETUP
steps:
- command: define DELAY 1
- ident: RETRIABLE
retry: 3
steps:
# Wait 1ms on first attempt, 1000ms on subsequent events
- command: sleepms %DELAY%
- command: define DELAY 1000
- command: operator "visual inspection"Comment actions
Please sign in to leave a comment.
Comments
1 comment