Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Current Situation
- Users apply the timeout property for jobs to specify that the job should be terminated if the timeout is exceeded. Jobs terminate with return code 1 when exeeding the timeout.
- Users would like to check if a job was terminated due to timeout constraints or due to job errors.
Desired Behavior
- The timedOut function is offered for use with the predicate in an If Instruction. The function returns a Boolean value true that indicates if the previous job was terminated due to a timeout constraint. If the job did terminate for other reasons then the function returns the false value.
- Example for checking job termination due to timeout constraints in an If Instruction:
$returnCode != 0 && timedOut
- Example for checking job termination due to timeout constraints in an If Instruction:
- Use of the timedout function for a failed job requires use of the If Instruction inside the catch block of a Try/Catch Instruction.