Wait for two boxes: condition: s(BOX_A) & s(BOX_B).
Either one: condition: s(BOX_A) | s(BOX_B).
s() checks the LAST completed run, even yesterday's.
Only today's run: add a lookback, s(BOX_A, 06.00) = success in the last 6 hours.
Pick a lookback shorter than the time between runs.
✦ Definition~90s read
What is AutoSys Condition on Two Boxes (Lookback)?
An AutoSys condition can combine any number of jobs or boxes with & (and) and | (or). s(JOB) is true when the job's last completed run ended in SUCCESS, which can be yesterday's run. Adding a lookback, s(JOB, hh.mm), requires that success to be within that many hours and minutes.
★
s(BOX) asks "did the last delivery arrive?" and a note from yesterday still says yes.
Plain-English First
s(BOX) asks "did the last delivery arrive?" and a note from yesterday still says yes. A lookback asks "did a delivery arrive in the last six hours?", which yesterday's note can't answer.
Yes, a job can depend on two boxes. The trap is that s() looks at the last run, not today's. A report that waits for two boxes can start on yesterday's success of a box that hasn't run yet today. A lookback fixes that.
Two Boxes with &
Join conditions with & so the job waits for both, or | for either. Boxes are referenced like jobs.
s(JOB) evaluates the status of the job's last completed run. If the upstream ran successfully yesterday and hasn't run yet today, the condition is still true.
check.shBASH
1
autorep -J RISK_BOX # LastEnd shows yesterday
🎯 Key Takeaway
Yesterday's SUCCESS satisfies s().
Lookback
Add hh.mm after the job name: the success must have happened within that window. Choose a window shorter than the gap between runs, so only the current run can match.