job_depends -c -J JOB: each condition and whether it's true now.
job_depends -d -J JOB: jobs whose conditions reference JOB.
job_depends -t -J JOB: start times, calendars and run window.
Use -c when a job won't start; use -d before icing or changing a job.
โฆ Definition~90s read
What is AutoSys job_depends Command?
job_depends is an AutoSys command that reports a job's dependencies: the state of its conditions (-c), the jobs that depend on it (-d), and its time-based rules (-t).
โ
Instead of checking every upstream job by hand, you ask AutoSys 'what is this job waiting for?' and it answers.
Plain-English First
Instead of checking every upstream job by hand, you ask AutoSys 'what is this job waiting for?' and it answers.
REPORT should have started at 20:00. Its condition named five jobs, and someone was checking them with autorep one at a time.
Current condition state
Shows the condition and each job's status, with true or false.
c.shBASH
1
job_depends -c -J REPORT
๐ฏ Key Takeaway
Find the false one.
Impact before a change
Lists jobs whose conditions mention this one.
d.shBASH
1
job_depends -d -J LOAD_SALES
๐ฏ Key Takeaway
Check before ON_ICE.
Time dependencies
Shows start_times, run_calendar and run_window.
t.shBASH
1
job_depends -t -J REPORT
๐ฏ Key Takeaway
For jobs waiting on time.
● Production incidentPOST-MORTEMseverity: high
Five Jobs Checked by Hand
Symptom
REPORT ACTIVATED for an hour.
Assumption
You have to check each upstream job yourself.
Root cause
RISK was still running; nobody had spotted it among five jobs.
Fix
job_depends -c -J REPORT showed RISK false in one command.
Key lesson
Ask AutoSys, don't guess.
-c for 'why won't it start'.
-d before changing a job.
Production debug guideWork through these in order3 entries
Symptom · 01
Job won't start
→
Fix
job_depends -c -J JOB.
Symptom · 02
Planning to ice or delete a job
→
Fix
job_depends -d -J JOB to see what depends on it.
Symptom · 03
Conditions true, still waiting
→
Fix
job_depends -t -J JOB for time rules.
⚙ Quick Reference
3 commands from this guide
File
Command / Code
Purpose
c.sh
job_depends -c -J REPORT
Current condition state
d.sh
job_depends -d -J LOAD_SALES
Impact before a change
t.sh
job_depends -t -J REPORT
Time dependencies
Key takeaways
1
-c
what it's waiting on.
2
-d
who depends on it.
3
-t
time rules.
Common mistakes to avoid
2 patterns
×
Checking upstream jobs one by one
Symptom
Slow and easy to miss one.
Fix
job_depends -c.
×
Icing a job without checking -d
Symptom
Downstream jobs wait forever.
Fix
Run job_depends -d first.
INTERVIEW PREP · PRACTICE MODE
Interview Questions on This Topic
Q01JUNIOR
How do you see why an AutoSys job isn't starting?
Q02SENIOR
How do you find what depends on a job?
Q01 of 02JUNIOR
How do you see why an AutoSys job isn't starting?
ANSWER
job_depends -c -J JOB shows each condition and whether it's currently true.