← Back to Explore

retry-on-pass

Tests that RETRY on the PASS path retries when a step succeeds

retries

Rundown


# RETRY on PASS Path

Tests that RETRY on the PASS path retries when a step succeeds.

## 1. Polling step

- PASS: RETRY 2 CONTINUE
- FAIL: STOP

Passes and retries up to 2 times. After exhaustion, CONTINUES to the next step.
This pattern is useful for polling or repeated checks.

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

## 2. Finish

- PASS: COMPLETE

Final step reached after pass-retry exhaustion.

```bash
rd echo "polling complete"
```

Run

Passes three times, exhausts pass-retry, continues to next step

Initializing...

Initializing...

Step/