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

The attribute warn_if_longer_than should result in a warning message email instead of an error email

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.8.4, 1.9.7, 1.10.1
    • None
    • None

    Description

      Current situation
      When defining the warning_if_longer_than attribute in a job and the job execution has not terminated after reaching the specified time, two emails will be sent to the assigned receipient. One Email will be sent when the specified time is reached. One Mail will be sent when the tasks ends.

      The first email contains one line

      2015-07-31 08:07:30.323Z JobScheduler -id=scheduler_id  host=host_namel  port=4444
      

      The subject of the email is [error] Error occurred in JobScheduler operation

      When the job terminates a second email is sent. This email contains the task log and is the standard email that will be sent when the mail_on_warning option has the value "yes".

      The body of the email contains

      2015-07-31 08:08:24.681Z JobScheduler -id=scheduler_id  host=host_name port=4444
      
      Task job1 with ID 283113 () terminated with warnings.
      
      SCHEDULER-712  Task runs longer than the expected duration of 00:00:05
      

      Desired behaviour
      When defining the warning_if_longer_than attribute in a job and the job execution has not terminated after reaching the specified time, two emails will be sent to the assigned receipient. One Email will be sent when the specified time is reached. One Mail will be sent when the tasks ends.

      The first email contains

      2015-07-31 08:08:24.681Z JobScheduler -id=scheduler_id  host=host_name port=4444
      
      Task job1 with ID 283113 () terminated with warnings.
      
      SCHEDULER-712  Task runs longer than the expected duration of 00:00:05
      

      The subject of the email is [warning] Task job1 runs longer than expected duration of 00:00:05

      When the job terminates a second email is sent. This email contains the task log and is the standard email that will be sent when the mail_on_warning option has the value "yes".

      The body of the email contains

      2015-07-31 08:08:24.681Z JobScheduler -id=scheduler_id  host=host_name port=4444
      
      Task job1 with ID 283113 () terminated with warnings.
      
      SCHEDULER-712  Task runs longer than the expected duration of 00:00:05
      

      Attachments

        1. scheduler_mail.xsl
          18 kB
        2. scheduler_mail.xsl
          19 kB

        Issue Links

          Activity

            People

              ur Uwe Risse
              ur Uwe Risse
              Santiago Aucejo Petzoldt Santiago Aucejo Petzoldt
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: