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.
  • The Users can specify a limited number of tries and the respective delays are configured using for the Retry Instruction.If  If the maximum number of tries is reached and a job in the Retry block fails, then the order is considered to have failedbe failed.
  • Users can specify an unlimited number of tries that will immediately retry execution from the begin of the Retry block.

Workflow Instruction: Retry

...

Users who wish to programmatically use variables that indicate the max. maximum number of retries tries and the current retry try counter in their jobs can use the built-in variables

  • $js7MaxTries: maximum number of tries as configured with the Retry Instruction..
    • For an unlimited number
    of retries
    • of tries the variable returns the empty value.
    • The variable is not defined outside of a Retry Instruction.
  • $js7TryCount: current number of retriestries. The variable holds the 0 value when used outside of a Retry Instruction.

The variables can be used in an JS7 - If Instruction and they can be mapped to environment variables in a shell job like this:

...