I am new to autosys.. does anyone know how to perform positive and negative test on particluar job
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Autosys seems to be painfully limited. You can create a condition in JOB2 that depends on the success of JOB1 e.g. SUCCESS(JOB1). But there seems to be no support for a condition that is the inverse of SUCCESS. Autosys provides a RUNNING and a NOTRUNNING condition, but for some reason they unfortunately omitted to include a NOTSUCCESS.
The best workaround I’ve come up with so far is to use the following JIL configuration:
So, if JOB1 enters the state “SUCCESS” between midnight and 7am, then ACT_ON_THE_CONDITION will immediately run. Since the command is just a dummy call to “date” this should run immediately and also become “SUCCESS” and therefore the 0AM-7AM_BOX box will also become “SUCCESS”.
The other possibility is that JOB3 does not enter state “SUCCESS” before 7am. In this case, the “term_run_time” setting will cause the box to enter the state “TERMINATED”.
Summing up,
This is useful because you can then set up dependent jobs that test the success condition or the terminated condition (since TERMINATED is a valid test you can put in a condition).