Skip to main content

Retry On Error

Executes a group of tasks with a retry mechanism, where all tasks are retried as a group if any of them fail during execution. Retries occur up to a specified number of times with a delay between attempts.

Category: Flow Control & Logic · Group: General · Activity name: RetryOnError

The RetryOnError activity in the designer

Example

outputVariable = RetryOnError(1, 0, isRetrying="<isRetrying>")

Inputs

NameTypeRequiredDefaultDescription
Number of retriesintegerYes1How many times to retry AFTER the first attempt fails: the group runs at most retries + 1 times, so 1 means two runs and 0 means one. Each retry repeats everything the group does — on a login block, another captcha solve and another one-time code emailed to the user.
Retry delay (seconds)integerYesThe number of seconds to wait before retrying the tasks after a failure. This delay applies between each retry attempt for the group of tasks.
Is RetryingstringThe variable where a boolean result will be stored. The result is true if the tasks are being retried, false otherwise.

Outputs

NameTypeDescription
outputVariableobjectSpecifies the name of the variable that will store retry-related data. This variable contains the following fields: - retryCount: The current retry attempt number. - retryException: The error message from the last failed attempt. You can access these fields using: {{variableName["retryCount"]}} to get the retry count. {{variableName["retryException"]}} to retrieve the last error message.

Branches

  • tasks