cancel
Showing results for 
Search instead for 
Did you mean: 

Cronacle: Using Pre run and Post run actions

Former Member
0 Kudos

Hello

I have a job which usually runs for 3 to 4 hours. But sometimes due to more data load it takes up to 8 hours to complete. I have a requirement to send an email notification when the job starts to run, and after 4 hours if its still running again a notification has to be sent and finally upon completion another email to be sent.

Is this possible to do using Job Actions (Pre-running and Post running)? If so how can i do it.

If not job actions, is there any other way to achieve it.

Please help

Thank You

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Nanda,

You can achieve this as below.

In Pre running a script a code to send email to indicate the start of the job.

In Run time limits set the maximum run time to as per your requirement and send alert escalation.

In post running similar script like pre-running script to send email to indication the end of the job.

Or

Add this job in chain

set one System_Mail_Send in step 1 to send job start notification

Your job in step 2 ->set run time limits and alert escalation.

again System_Mail_Send in step 3 to send job end notification

Hope this helps!!

Regards,

Ravindranath Reddy

gmblom
Active Contributor
0 Kudos

Hello,

It is best to use Runtime Limits for this purpose. You can raise an event on these types of timeouts.

Regards Gerben