Details
-
Fix
-
Status: Released (View Workflow)
-
Major
-
Resolution: Fixed
-
1.7
-
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