Retry until it works
FreeLogicTries up to 3 times; succeeds once the attempt number reaches `succeedOn`.
A safe way to see Retry: the Attempt fails on purpose until attempt succeedOn. When an attempt finishes without an error Retry fires Succeeded; after 3 failures it fires Failed with the last error. In your own logic the Attempt would call something that can fail now and then. The backoff is 0 here; in real code it waits between attempts.
Shows: Retry (attempts, Succeeded, Failed, attemptNo, error), Throw Error.
Add it to your logic, then add a Call Function step in any logic and pick Retry. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
| Passed | Example | Input | Output |
|---|---|---|---|
| Works on the 2nd attempt | {"succeedOn":2} | {"ok":true,"attempts":2,"error":null} | |
| Never works | {"succeedOn":5} | {"ok":false,"attempts":3,"error":"Not yet"} |
