Home DevOps AutoSys Job Scheduling — Time Conditions, start_times, and days_of_week

AutoSys Job Scheduling — Time Conditions, start_times, and days_of_week

Where developers are forged. · Structured learning · Free forever.
📍 Part of: AutoSys → Topic 13 of 30
Learn how AutoSys job scheduling works: date_conditions, start_times, days_of_week, run_window, and timezone.
🧑‍💻 Beginner-friendly — no prior DevOps experience needed
In this tutorial, you'll learn:
  • date_conditions: 1 must be set for start_times and days_of_week to take effect — it defaults to 0
  • start_times specifies clock times; days_of_week specifies which days; both require date_conditions: 1
  • run_window bounds when a job should complete; term_run_time hard-terminates after N minutes
✦ Plain-English analogy ✦ Real code with output ✦ Interview questions
⚡ Quick Answer
Scheduling an AutoSys job is like programming a coffee maker — you tell it which days to run, what time to start, and whether it should wait for other things to happen first before brewing.

Time-based scheduling in AutoSys is controlled by a small set of attributes that work together. The most important thing to understand up front: date_conditions must be set to 1 for any time-based scheduling to take effect. Without it, start_times and days_of_week are ignored entirely.

The date_conditions gate

date_conditions is a binary flag. When it's 1, AutoSys respects the time-based scheduling attributes (start_times, days_of_week, run_calendar). When it's 0 (the default), the job only runs when explicitly triggered — either manually or by a condition from another job.

date_conditions.jil · BASH
12345678910111213141516171819
/* Job that ONLY runs when triggered by another job */
insert_job: load_to_warehouse
job_type: CMD
command: /scripts/load.sh
machine: server01
owner: batch
date_conditions: 0             /* time-based scheduling OFF */
condition: success(transform)  /* runs when transform succeeds */

/* Job with both time AND condition */
insert_job: morning_extract
job_type: CMD
command: /scripts/extract.sh
machine: server01
owner: batch
date_conditions: 1             /* time-based scheduling ON */
days_of_week: mon-fri
start_times: "06:00"
condition: done(overnight_backup)  /* also waits for backup to be done */
⚠️
date_conditions: 0 is the defaultIf you define a job without date_conditions, it defaults to 0 and will never run on a schedule. This catches many beginners off guard — always explicitly set date_conditions when you want time-based scheduling.

start_times and days_of_week

start_times specifies when to run, days_of_week specifies which days.

time_scheduling.jil · BASH
12345678910111213141516171819
/* Run once daily at 2 AM, all days */
date_conditions: 1
days_of_week: all
start_times: "02:00"

/* Run twice daily on weekdays only */
date_conditions: 1
days_of_week: mon-fri
start_times: "08:00, 20:00"

/* Run on specific days */
date_conditions: 1
days_of_week: mon,wed,fri
start_times: "12:00"

/* Run every 15 minutes (use with caution in production) */
date_conditions: 1
days_of_week: all
start_mins: "00,15,30,45"   /* start_mins for sub-hourly */

run_window — bounding when a job can run

run_window defines a time range within which the job must complete. If the job is still running when the window closes, AutoSys generates an alarm. Some configurations also terminate the job at the window end.

run_window.jil · BASH
12345678910
insert_job: batch_processing
job_type: CMD
command: /scripts/batch.sh
machine: server01
owner: batch
date_conditions: 1
days_of_week: all
start_times: "23:00"
run_window: "23:00 - 06:00"    /* must complete within this window */
term_run_time: 420             /* kill after 7 hours regardless */

Timezone handling

By default, AutoSys uses the server's timezone. For jobs that must run at a specific local time regardless of server timezone (common in multinational companies), set the timezone attribute explicitly.

timezone.jil · BASH
123456789
insert_job: london_end_of_day
job_type: CMD
command: /scripts/london_eod.sh
machine: london-server
owner: batch
date_conditions: 1
days_of_week: mon-fri
start_times: "18:00"
timezone: Europe/London        /* runs at 18:00 London time always */
AttributeWhat it controlsExample values
date_conditionsEnable time-based scheduling0 (off), 1 (on)
start_timesClock times to run"02:00", "02:00, 14:00"
days_of_weekWhich daysall, mon-fri, mon,wed,fri
start_minsSub-hourly scheduling"00,15,30,45"
run_windowTime window for execution"22:00 - 06:00"
timezoneTimezone for time interpretationUS/Eastern, Europe/London

🎯 Key Takeaways

  • date_conditions: 1 must be set for start_times and days_of_week to take effect — it defaults to 0
  • start_times specifies clock times; days_of_week specifies which days; both require date_conditions: 1
  • run_window bounds when a job should complete; term_run_time hard-terminates after N minutes
  • Use the timezone attribute when jobs must run at local time in a specific region

⚠ Common Mistakes to Avoid

  • Forgetting date_conditions: 1 — start_times is completely ignored without it
  • Setting start_times on child jobs inside a BOX — usually they should use condition dependencies, not clock times
  • Not setting timezone when a job must run at local time across timezone boundaries
  • Confusing run_window with start_times — start_times is when the job starts; run_window is the window within which it should finish

Interview Questions on This Topic

  • QWhat does date_conditions do in AutoSys?
  • QIf start_times is set but the job never runs, what is the first thing you check?
  • QHow do you schedule an AutoSys job to run every 15 minutes?
  • QWhat is run_window and how does it differ from term_run_time?
  • QHow do you schedule an AutoSys job in a specific timezone?

Frequently Asked Questions

Why isn't my AutoSys job running at the scheduled time?

The most common reason is date_conditions is not set to 1. Without date_conditions: 1, start_times and days_of_week are ignored. Also check that days_of_week includes today and that no conditions are blocking the job.

How do I schedule an AutoSys job to run every hour?

Set date_conditions: 1, days_of_week: all, and use start_mins or multiple start_times. For hourly: use a combination of start_times listing every hour, or use a BOX that repeats daily with internal hourly scheduling.

What is run_window in AutoSys?

run_window defines the time range within which a job should run and complete. If the job starts within the window but the window closes before it finishes, AutoSys can generate an alarm or terminate the job depending on configuration.

Can an AutoSys job run at both a scheduled time AND when another job finishes?

Yes. You can combine date_conditions: 1 with a condition attribute. The job starts when BOTH its time conditions are met AND its dependency condition is true.

What is the default timezone for AutoSys scheduling?

AutoSys uses the server's local timezone by default. Use the timezone attribute in the job definition to specify a different timezone explicitly — essential for multinational environments.

🔥
Naren Founder & Author

Developer and founder of TheCodeForge. I built this site because I was tired of tutorials that explain what to type without explaining why it works. Every article here is written to make concepts actually click.

← PreviousJIL One-Time Job OverridesNext →AutoSys Job Dependencies and Conditions
Forged with 🔥 at TheCodeForge.io — Where Developers Are Forged