Details
-
Feature
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Current Situation
- When an error reoccurrs in the same job node for which a notification has already been sent then this order state is considered being previously notified and no new notification will be sent.
Desired Behaviour
- In some cases, e.g. for long running orders, it is desirable that a reoccurring error results in repeated notifications.
- The following new functionality should be provided:
- Send notifications for all errors that occur, do not suppress errors for repeatedly failed executions.
- Introduce a new configuration item for the JobChain element.
... <JobChain name=...> <NotifyRepeatedError /> </JobChain> ...
- Introduce a new configuration item for the JobChain element.
- Send notifications for errors that occur due to repeated failed executions if the restart was caused by manual intervention.
- This functionality considers the audit log that was introduced with releases 1.11 to identify manually caused restarts of tasks.
- Introduce a new configuration item for the JobChain element.
... <JobChain name=...> <NotifyRepeatedError> <NotifyByIntervention /> </NotifyRepeatedError> </JobChain> ...
- Send notifications for errors that occur due to repeatedly failed executions if a configurable period of time is exceeded. The period between notifications is calculated from the time of the last failed execution for which a notification has been sent and the time of the current failed execution.
- Introduce a new configuration item for the JobChain element.
... <JobChain name=...> <NotifyRepeatedError> <NotifyByPeriod period="2h 30m" /> </NotifyRepeatedError> </JobChain> ...
- Introduce a new configuration item for the JobChain element.
Test Instruction
- Test Configuration
- use TEST-JITL-534.zip file
- use the config/notification/SystemMonitorNotification_v1.0.xsd schema file provided with the JobScheduler installation
- config/notification/SystemMonitorNotification_MonitorSystem.xml
- adjust the NotificationCommand
- config/live/
JITL-534-notification-repeated-errors/setback|suspend- job_100.job.xml and job_200.job.xml
- create the files e.g. D:/my_file_100.txt and rename to D:/my_file_100.txt~
- this jobs throw an error if no file is found
- create the files e.g. D:/my_file_100.txt and rename to D:/my_file_100.txt~
- job_100.job.xml and job_200.job.xml
- Test Execution
- Testing of different scenarios:
- config/notification/SystemMonitorNotification_MonitorSystem.xml JobChain element:
- without NotifyRepeatedError
- NotifyRepeatedError
- without child nodes
- NotifyRepeatedError -> NotifyByIntervention
- NotifyRepeatedError -> NotifyByPeriod
- NotifyRepeatedError -> NotifyByIntervention and NotifyByPeriod
- test the setback case
- test the suspend case
- config/notification/SystemMonitorNotification_MonitorSystem.xml JobChain element:
- Run the order and simulate an error or success case (by renaming the files -> see D:/my_file_100.txt)
- Use the Resume, Reset JOC operations to resume an order
- Testing of different scenarios:
Attachments
Issue Links
- is related to
-
JITL-594 JobScheduler Monitoring Interface - SystemNotifier job fails with a NullPointerException
- Released
- relates to
-
JITL-533 JobScheduler Monitoring Interface - Send notifications for repeatedly failed job chain steps in JobScheduler release 1.10
- Dismissed
- requires functional consideration of
-
JITL-567 FactPlugin does not set a trigger and notification order end property if an order is resumed
- Released
- mentioned in
-
Page Loading...