Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2164

Add timedOut function to access reason in order outcome

    XMLWordPrintable

Details

    • Feature
    • Status: Approved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.2
    • JS7 Controller
    • 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
          
      • Use of the timedout function for a failed job requires use of the If Instruction inside the catch block of a Try/Catch Instruction.

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ap Andreas Püschel
              Andreas Püschel Andreas Püschel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: