Versions Compared

Key

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

...

  • The Retry Instruction adds error handling to one or more job nodes and other instructions in a workflow.
  • If one of the jobs in the Retry block fails, then the order is moved to the begin of the Retry block to repeat execution.
  • Users can specify a limited number of tries and the respective delays for the Retry Instruction. If the maximum number of tries is reached and a job in the Retry block fails, then the order is considered to be failed.
  • Users can specify an unlimited number of tries that which will immediately retry execution from the begin of the Retry block.

...

  • 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 The example makes use of a maximum of 10 tries and an individual delay, which is lengthened by one second 10 seconds with each retrytry.
  • If the number of delays specified is lower than the number of tries then the last delay specified will be used for subsequent retriestries.

Use of Retry Variables

Display feature availability
StartingFromRelease2.7.2

...

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.

...

Resources

Display content by label
TypeHow To
Labelsjs7 howto retry-instruction

...