Some of the scheduled jobs failed to run successfully and we didn't notice it until we logged into the server and saw that the job which was scheduled to run failed. Hence we would like to be notified if a job which is scheduled to run fails. I contacted support and created a case TS000891645. They mentioned that there is no out of the box configuration to send email based on the outcome of a scheduled task and I had to write a script which uses use the API call scheduler-service-status-xml to get the status of the scheduler at intervals after the desired scheduled task to monitor and parse that output for the last-run details of the scheduler job you are interested in, and this function returns the status of the scheduler service as well as the details of the scheduled tasks that are configured including their upcoming runs, and the outcome of the last run. Based on that parsing I could determine if an email needs to be sent or not. This looks like an outcome which could be implemented for the time being, but I would expect an out of the box functionality for issue mentioned above. They suggested that I create a RFE for the same.
|Role Summary||Scheduler Monitoring, Detect failures in scheduled jobs.|
NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "email@example.com" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions