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
Before you start⏱ 6 min
  • ✓AutoSys JIL basics
 ● Production Incident 🔎 Debug Guide
⚡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.

box.jilJIL
1
2
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.

box_fail.jilJIL
1
2
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.

check.shBASH
1
2
autorep -J DAILY_BOX
autorep -J DAILY_BOX -q | grep box_
๐ŸŽฏ Key Takeaway
Check before changing rules.
● Production incidentPOST-MORTEMseverity: 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 guideWork through these in order4 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
FileCommand / CodePurpose
box.jilupdate_job: DAILY_BOXDefine success
box_fail.jilupdate_job: DAILY_BOXDefine failure
check.shautorep -J DAILY_BOXCheck 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

Q01JUNIOR
When does an AutoSys box succeed by default?
Q02SENIOR
How do you stop an optional child failing the box?
Q01 of 02JUNIOR

When does an AutoSys box succeed by default?

ANSWER
When all its children succeed; any child failure makes it FAILURE.
FAQ · 2 QUESTIONS

Frequently Asked Questions

01
Can box_success use lookbacks?
02
Does box_success change when children run?
RESOURCES

Keep going

AutoSys Full Course for Beginners▶
WatchAutoSys Full Course for BeginnersJIL, job statuses, monitoring and failed jobs, start to finish.Watch on YouTube →
ReadThe complete DevOps guideOne deep guide that walks the whole DevOps track in order.Start reading →
Q
PracticeDevOps Interview QuestionsReal interview questions with answers, by topic.Practice now →
COMPLETE GUIDE
The Complete AutoSys Workload Automation Guide for Engineers →

JIL syntax, sendevent, autorep, box jobs, file watchers, scheduling, HA, security, cloud workload automation, and 22 interview questions โ€” the definitive AutoSys reference for production engineers.

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

←
Previous
AutoSys Job Stuck in ACTIVATED
56 / 58 · AutoSys
Next
AutoSys job_depends Command
→