Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...



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
StartingFromRelease2.7.2

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:

Image Added


Explanation:

  • The $js7MaxTries variable is mapped to the MAX_TRIES environment variable.
  • The $js7TryCount variable is mapped to the TRY_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.

Image Added

Further Resources

Display content by label
TypeHow To
Labelsjs7 howto retry-instruction

...