AutoSys Job multiple dependencies issue: s(1) & s(2) & s(3)

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:05:43

问题


I got 4 jobs: 1, 2, 3, 4.

2's condition: s(1); 3's condition: s(2); 4's condition: s(1) & s(2) & s(3)

all these jobs are daily jobs

the first day is ok. the second day, the 4th job triggered mutilple times:

I think when 1 success, and the status of 2 and 3 are still 'success'(the last days status), so the job 4 triggered,

then 2 success, triggered again...

so is there any solution for this? becase I only want these condition is based on the current day's result.


回答1:


This is already answered on stackoverflow.com The solution depends on the version of Autosys you are using. If it is R11, the newest version, you can set look back dependencies on job_a to only run if job_c has ran to S within X hours.

Full answer here: Autosys dependency on mainframe job




回答2:


Yes if you are running latest version of Autosys you can set the success condition depending on time. In your case you can set as: 4's condition: s(1, 23.00) & s(2, 23.00) & s(3, 23.00)

This condition checks if the jobs 1,2,3 were successful within last 23 hours.

Format is: S(jobname, hh.mm)




回答3:


One solution is to include all the 4 jobs in a Box job, and whenever the Box jobs starts all the job will become active and will run only in the completion of all the dependencies.




回答4:


Put all 4 jobs in a box. Then, you can change the run condition of job4 to just the success of job3.



来源:https://stackoverflow.com/questions/14150845/autosys-job-multiple-dependencies-issue-s1-s2-s3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!