jonathan_calloway

ESP - Is it possible to trigger an event when a job goes overdue?

Discussion created by jonathan_calloway on Jan 28, 2019
Latest reply on Jan 28, 2019 by Luu Le

All,

 

I would like to trigger an event when a job goes overdue.  I believe that if I can do this, then I can have that event do whatever I want it to do with the job, tasks etc.  The particular use case that I have in mind is an Windows  job that has been timing out recently.  Since it is a cyclical job, I would like to force it complete once it has been running for a certain amount of time. I have been trying to create a variable based on the sum  of REALNOW and OVERDUE.  If this value reaches a certain ammount, then an event gets triggered with some variables passed in $USER1 and $USER2.  However, I have yet to get it to work.  While I prefer to do this at the job level, I have only been able to get ESP not to "complain" about the variable unless I move it to the application level, so currently it looks like this:

 

MAXRUNTIME = 5

DUE = ('REALNOW + MAXRUNTIME')

IF %DUE > '5' THEN DO

ESPNOMSG TRIGGER STOPUTIL ADD USER1('CC140W01') USER2('CC140W01')

ENDDO

 

NT_JOB CC140W01

RUN DAILY

AGENT BCAPP601

CMDNAME POWERSHELL.EXE

ARGS
BCAPP601\IS\ECMS\BR549W01.PS1

ENDJOB

 

Thanks in advance for your help!

 

Jonathan Calloway

Batch Scheduling Specialist

Operations Support

Office: 423.535.7342

Cell: 423.309.2547

 

 

 

-


Please see the following link for the BlueCross BlueShield of Tennessee E-mail disclaimer:  http://www.bcbst.com/email_disclaimer.shtm

 

Attachments

Outcomes