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

E-Mail sent due to "warn_if_shorter_than" event should contain job name and task ID

    XMLWordPrintable

Details

    Description

      Current Situation

      When a job has the attritbute warn_if_shorter_than="xxxxx" and the job does run shorter than the given value an email is sent.

      The values for the job name and the task id are empty in the subject and in the body. The message SCHEDULER-711 Task runs shorter than the expected duration of 00:00:05 is missing.

      As this is not the case when the attribute {{warn_if_longer_than="xxx" }} is configured in the job and the style-sheet transformation do use the same values, the root cause for this behavior is a wrong xml provided by JobScheduler for the style sheet transformation.

      Desired Behavior

      When a job has the attritbute warn_if_shorter_than="xxxxx" and the job does run shorter than the given value an email is sent.

      The values for the job name and the task id should not be empty in the subject and in the body. The body should contain the message {{ SCHEDULER-711 Task runs shorter than the expected duration of 00:00:05

      Testcase

      To reproduce run this job

      <job  stop_on_error="no" warn_if_longer_than="2" warn_if_shorter_than="1111" name="job1">
          <params />
          <script  language="shell">
              <![CDATA[
      ping -n 10 localhost
              ]]>
          </script>
          <run_time />
      </job>
      

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ur Uwe Risse
              Uwe Risse Uwe Risse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: