In Autosys R11, I need job_b to run only if job_a succeeded within the last X hours. Apparently, R11 allows you to "set look back dependencies on job_a to only run if job_c has ran to S within X hours." What would be the syntax?
s(job_a)
What would I add if I want my job to run only if job_a succeeded within the last 12 hours, for example?
Example: Create a Dependent Command Job Run the job only if the file watcher job named EOD_watch completes with a SUCCESS status. Source the /etc/auto. profile file (AutoSys Workload Automation sources this file by default), and run the POST job that is located in the home directory of the job owner.
'd' (done) Indicates that the job you are defining may run when the job specified within the condition completes with a status of SUCCESS, FAILURE, or TERMINATED.
a time condition tells the successor to run again at 1:00 however 12:01 is more recent than 12:00 and lookback 0 does not validate. If the predecessor runs again at 1:30 then 1:30 is more recent than 12:01 and lookback 0 will then validate and start the second job.
You can use the job_depends command to list a jobs dependancies, the documentation for which can be found here: https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-commands/monitor-and-report-on-workload/job_depen…
Should be
condition: success(job_a,12.00)
status(job_name, hhhh.mm)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With