Skip to content

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.

  1. Execute the body block.
  2. If successful, it terminates and continues the flow.
  3. If it fails, log a warning with the reason, wait delay milliseconds (if you configured it), and try again.
  4. Repeat until attempts attempts are exhausted. If all fail, the activity fails with the last error (which stops execution unless inside a Try / Catch).
ParameterEditorDescription
attemptsexpressionMaximum number of attempts, including the first. Ex: 3 = one attempt + 2 retries.
ParameterEditorDescription
delayexpressionMilliseconds to wait between attempts. By default 0 (no wait).

The activities to execute and, if they fail, retry.

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.

  • Try / Catch — handle error if all attempts fail.
  • Delay — espera fija (Retry ya incluye delay entre intentos).