cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Alert for Cancelling, Killing, Post Running Status without Alerting Module

Former Member
0 Kudos

Hi All,

I am new to Redwood and here are the details of Redwood we are using.

Build M33.92-68971 and we dont have Alerting module.

We have a requirement that for some jobs if they are in post running/killing/cancelling/running for more than 15 minutes, we have to send email alert.

Here is what I have thought of:

1. Create a raise event for the job A to be notified and raise a custom job.

2. Custom job will also start running the moment job A is running.

3. Get the jobid from event and get the run time from the job table.

4. In Job A check if runtime > 15 minutes, then send a mail.

In step 4 how could I trigger a mail? I am not sure how could I do that

This custom job will be like a template so that it can used for more jobs.

I read through previous posts but could not really get the logic.

please advice and any help is highly appreciated.

Thanks,

Kasyap.

Accepted Solutions (1)

Accepted Solutions (1)

nanda_kumar21
Active Contributor
0 Kudos

This is not a good design, first thing is you are adding unnecessary load to the system. If there are 5000 jobs running in an hour, you will be adding 5000 more jobs to monitor them and 5000 more to send an email. You will be running 3 times the load on the system.

thanks

Nanda

Former Member
0 Kudos

Hi nanda,

so how could we about it?

nanda_kumar21
Active Contributor
0 Kudos

You can play with the runtime limits to achieve the same.

I have tried different alternatives like this, however in my opinion, alerting module is the most efficient way.

Answers (0)