AutoSys Workload Automation

  • 1.  how to do, condition: not success(jobA,1) and value(IS_RUN_DAY) = "Y"

    Posted Feb 22, 2016 01:23 AM

    I would like to create simple alarm alarmJobA: If JobA has not succeeded in the last hour then fail, then at time X, fail condition: not Success(JobA,1) start at time X. Currently this take 3 jobs to implement: job1: alarmJobA, fails at time X. job2: at time A; take alarmJobA off ice.  (arm alarm) job3: condition: success(JobA,1)  : put alarm alarmJobA on ice  (disarm alarm) It took 20 years to get look back, another 20 for negation ? ;(



  • 2.  Re: how to do, condition: not success(jobA,1) and value(IS_RUN_DAY) = "Y"
    Best Answer

    Posted Feb 22, 2016 01:55 AM

    Hi –

     

    By “not success” you imply any other status than SUCCESS?

     

    How about another GV that is set to the output of `autostatus –J job` and check for the value of that GV != “SUCCESS”

     

    sendevent –E SET_GLOBAL –G JobA_Status=$(autostatus –J JobA)

     

    condition: V (JobA_Status) != “SUCCESS” & V (IS_RUN_DAY) = "Y"

     

     

    Hope that helps!

     

     

    Thanks & Regards,

    Chandru



  • 3.  Re: how to do, condition: not success(jobA,1) and value(IS_RUN_DAY) = "Y"

    Posted Feb 29, 2016 02:58 PM

    To be honest. i would never run a command this way in prod. I see 2

    failure points not caught.

     

    Steve C.

    Stirling Systems Group