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

The mail caused by warn_if_longer|shorter_than attribute should consider the mail setting in a job too

    XMLWordPrintable

Details

    Description

      Current Situation

      If you configure the warn_if_longer_than or warn_if_shorter_than attribute then an email is sent when the specified time is reached.
      A possibly mail setting in the job doesn't used.

      <job  warn_if_longer_than="10">
          <settings >
              <mail_on_error ><![CDATA[yes]]></mail_on_error>
              <mail_on_warning ><![CDATA[false]]></mail_on_warning>
              <log_mail_to ><![CDATA[xx@sos-berlin.com]]></log_mail_to>
          </settings>
          <script  language="shell">
              <![CDATA[
      sleep 60
              ]]>
          </script>
      </job>
      

      Only the settings in the ./config/factory.ini are used.
      If the log_mail_to entry is empty in the ./config/factory.ini then the mail is not sent even the job has a configured "to" recipient.

      Desired Behavior

      A mail setting in the job has to be consider for the "warn_if_longer|shorter_than" mails

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            oh Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: