Page History
...
- Download Workflow Example (.json upload): pdwReTrypdwRetry.workflow.json
Explanation:
- If any of the three jobs within the Retry block fails, then the order will wait for the specified delay and then repeat the Retry block from the first job node in the block.
- This example makes use of a maximum of 10 tries and an individual delay, which is lengthened by one second with each retry.
- If the number of delays specified is lower than the number of tries then the last delay specified will be used for subsequent retries.
Use of Retry Variables
Display feature availability | ||
---|---|---|
|
Users who wish to programmatically use variables that indicate the max. number of retries and the current retry counter in their jobs can use the built-in variables
$js7MaxTries
: maximum number of retries$js7TryCount
: current number of retries
The variables can be used in an JS7 - If Instruction and they can be mapped to environment variables in a shell job like this:
Explanation:
- The
$js7MaxTries
variable is mapped to theMAX_TRIES
environment variable. - The
$js7TryCount
variable is mapped to theTRY_COUNT
environment variable.
Environment variables can be used in shell jobs for Unix using $MAX_TRIES
and $TRY_COUNT
syntax. In shell jobs for Windows the %MAX_TRIES%
and %TRY_COUNT%
syntax is used.
Further Resources
Display content by label | ||||
---|---|---|---|---|
|
...
Overview
Content Tools