Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-747

Optimize handling of stacktrace with JITL jobs in case of errors

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.7.2
    • None

    Description

      Current Situation

      • When a JITL job fails:
        • The complete exception stacktrace is logged to the agent.log file with logging level ERROR.
          • In addition, the JITL job warnings are also logged in the agent.log with the WARN level.
        • The same full stacktrace is also sent to the Controller API (JOutcome.failed).
          • As a result:
            • The Controller’s own (mini) history of a workflow run is filled with unnecessary information.
              • This increases processing times and memory usage, particularly for failed jobs in Cycle Instructions.
            • The order log captures the same stacktrace at multiple points:

      Desired Behavior

      • The full exception stack trace or JITL job warnings should be written to the agent.log file, but with the logging level set to INFO.
      • The complete exception stacktrace should be redirected to the STDERR channel of the corresponding JITL job.
      • The Controller API (JOutcome.failed) should only receive the exception message, not the full stacktrace.

      Test Instructions

      • Use various JITL jobs during testing.
      • Test different failure scenarios, such as failures due to job execution issues (e.g., inability to establish a database or SSH connection).
      • Test failures related to job definition configurations (e.g., exceeding the timeout limit).
      • Verify that the complete exception stacktrace is logged only once per failed job in the order log (see log examples).

      Attachments

        Activity

          People

            re Robert Ehrlich
            re Robert Ehrlich
            Aakash Rao Aakash Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: