Home
โบ
DevOps
โบ
AutoSys box_success and box_failure: Decide When a Box Succeeds
Intermediate
3 min · December 6, 2026
AutoSys box_success and box_failure: Decide When a Box Succeeds
By default an AutoSys box fails if any child fails.
N
Naren
Founder & Principal Engineer
20+ years shipping production infrastructure and CI/CD at scale. Notes here come from systems that actually shipped.
Follow
✓ Production
production tested
December 06, 2026
last updated
2,151
articles · all by Naren
VIDEO
⚡ Quick Answer
Default: box SUCCESS only when every child succeeds; any FAILURE or TERMINATED makes the box FAILURE. box_success: s(A) & s(B) = the box succeeds when A and B succeed. box_failure: f(A) | f(B) = the box fails when A or B fails. Leave out only optional jobs, and alarm on them separately. Downstream jobs see the box status, not the children's.
โฆ Definition ~90s read
What is AutoSys box_success and box_failure?
box_success and box_failure are box job attributes. They hold a condition, like a normal job condition, that decides when the box ends SUCCESS or FAILURE instead of the default rule.
โ
Normally the whole team fails if one person fails.
Plain-English First
Normally the whole team fails if one person fails. box_success lets you say which people actually count.
DAILY_BOX failed because EMAIL_SUMMARY hit an SMTP timeout. WH_LOAD, which waited on s(DAILY_BOX), never ran.
Define success List the children that must succeed.
update_job: DAILY_BOX
box_success: s (LOAD ) & s (XFORM ) & s (PUBLISH ) ๐ฏ Key Takeaway
Only the jobs downstream depends on.
Define failure Set box_failure to match, so the two rules can't contradict.
update_job: DAILY_BOX
box_failure: f (LOAD ) | f (XFORM ) | f (PUBLISH ) ๐ฏ Key Takeaway
Set both together.
Check the box See every child's status in one list.
autorep -J DAILY_BOX
autorep -J DAILY_BOX -q | grep box_ ๐ฏ Key Takeaway
Check before changing rules.
● Production incident POST-MORTEM severity: high
An Email Blocked the Warehouse Symptom
DAILY_BOX FA; WH_LOAD never started; data jobs all SU.
Assumption
Only data jobs affect the box.
Root cause
Default box rules: any child failure fails the box.
Fix
Set box_success: s(LOAD) & s(XFORM) & s(PUBLISH) and box_failure: f(LOAD) | f(XFORM) | f(PUBLISH); added an alarm on EMAIL_SUMMARY.
Key lesson
Every child counts by default. Define done explicitly. Alarm on optional jobs.
Production debug guide Work through these in order 4 entries
Symptom · 01
Box FA, important children SU
→
Fix
autorep -J BOX to find which child failed.
Symptom · 02
That child is optional
→
Fix
Set box_success and box_failure without it.
Symptom · 03
Box SU but a key job failed
→
Fix
Your box_success is too loose; add the job back.
Symptom · 04
Box stays RUNNING
→
Fix
A listed child never finished; see box stuck in RUNNING.
⚙ Quick Reference
3 commands from this guide
File Command / Code Purpose box.jil update_job: DAILY_BOX Define success box_fail.jil update_job: DAILY_BOX Define failure check.sh autorep -J DAILY_BOX Check the box
Key takeaways 1 Default
every child counts.
2 box_success / box_failure choose which do.
3 Alarm on what you leave out.
Common mistakes to avoid 3 patterns × box_success too loose Symptom
Box SU over a real failure.
Fix
Include every job downstream relies on.
× Only setting box_success Symptom
Confusing results when it and the default failure rule disagree.
Fix
Set box_failure too.
× Dropping a job with no alarm Symptom
Its failures go unnoticed.
Fix
Alarm on optional jobs.
INTERVIEW PREP · PRACTICE MODE
Interview Questions on This Topic
Practice
List View
Q01 JUNIOR
When does an AutoSys box succeed by default?
Q02 SENIOR
How do you stop an optional child failing the box?
Q01 of 02 JUNIOR
When does an AutoSys box succeed by default?
ANSWER
When all its children succeed; any child failure makes it FAILURE.
Q02 of 02 SENIOR
How do you stop an optional child failing the box?
ANSWER
Set box_success and box_failure to conditions that leave that child out.
01
When does an AutoSys box succeed by default?
JUNIOR 02
How do you stop an optional child failing the box?
SENIOR
FAQ · 2 QUESTIONS
Frequently Asked Questions
01
Can box_success use lookbacks? It uses the same condition syntax as jobs.
Was this helpful? 👍 Yes 👎 No
02
Does box_success change when children run? No, only how the box's final status is decided.
Was this helpful? 👍 Yes 👎 No
N
Naren
Founder & Principal Engineer
20+ years shipping production infrastructure and CI/CD at scale. Notes here come from systems that actually shipped.
Follow
✓ Verified
production tested
December 06, 2026
last updated
2,151
articles · all by Naren
🔥
That's AutoSys. Mark it forged?
3 min read · try the examples if you haven't
✓ Mark as read · go to AutoSys job_depends Command →
Save for later