← Back to Patterns

goto-dynamic-step-alone

Demonstrates infinite retry pattern where FAIL causes step to restart (GOTO {N}) and only PASS exits the runbook

navigation dynamic

Source


# GOTO Dynamic Step

Demonstrates infinite retry pattern. The step restarts on FAIL and only
exits on PASS (defaults to CONTINUE). Use for operations that should retry
indefinitely until an external condition causes failure.

## {N}. Dynamic
- FAIL: GOTO {N}

```bash
rd echo --result fail --result fail --result fail --result fail --result pass
```

Try It

Retries on fail until pass, then completes

Initializing...

Initializing...

Step/
ExpectedCOMPLETE
Env idle