Retry
Type: retry · Package: Core Activities v1.0.0
Runs a block of activities, and if fails, retries** up to a maximum number of times, with an optional wait between attempts. It is ideal for actions that fail intermittently and that usually work on the second or third attempt: a slow web page, an unstable network, a system that is slow to respond.
How it works
Section titled “How it works”- Execute the
bodyblock. - If successful, it terminates and continues the flow.
- If it fails, log a warning with the reason, wait
delaymilliseconds (if you configured it), and try again. - Repeat until
attemptsattempts are exhausted. If all fail, the activity fails with the last error (which stops execution unless inside a Try / Catch).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
attempts | expression | Maximum number of attempts, including the first. Ex: 3 = one attempt + 2 retries. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
delay | expression | Milliseconds to wait between attempts. By default 0 (no wait). |
Subflows (lanes)
Section titled “Subflows (lanes)”body requerido
Section titled “body requerido”The activities to execute and, if they fail, retry.
Example
Section titled “Example”Retry a web action up to 3 times, waiting 2 seconds between attempts:
Retry attempts = 3 delay = 2000 └─ body: Page Navigate page = = pagina url = "https://erp.cliente.com" Page Click page = = pagina selector = "#login"If the first attempt fails (page did not load), wait 2 s and try again; If the second one fails, wait and try again. If the third also fails, the activity fails with the last error.
Related activities
Section titled “Related activities”- Try / Catch — handle error if all attempts fail.
- Delay — espera fija (Retry ya incluye
delayentre intentos).