AutoSys Job Stuck in STARTING: Why It Never Runs and How to Release It
An AutoSys job stuck in STARTING was sent to the agent but never acknowledged.
20+ years shipping production infrastructure and CI/CD at scale. Everything here is grounded in real deployments.
- ✓AutoSys JIL basics
- STARTING = the scheduler sent the job; the agent hasn't acknowledged it yet.
- Check the agent first: autoping -m MACHINE tells you if it's reachable.
- Check disk space on the agent (df -h on its install and log folders): a full disk stops it acknowledging jobs.
- Check the agent isn't at its job limit, and look for the job in the scheduler log ($AUTOUSER/out/event_demon.$AUTOSERV).
- Fixing the cause doesn't release jobs already stuck: restart the agent, reset each job with sendevent -E CHANGE_STATUS, then start it again.
STARTING is like a dispatcher who has radioed a driver and is waiting for "copy that". If the radio is off, the driver's van is full, or the driver already has too many jobs, no reply comes back, and the job waits on the board forever.
Forty jobs on one machine, all in STARTING, none running. Force-starting them just puts them back in STARTING. That's because STARTING isn't about the job at all: it's the scheduler waiting for the agent to answer. This guide shows what the state means, how to find why the agent isn't answering, and how to release the jobs.
What STARTING Means
When a job's conditions are met, the scheduler sends a start request to the agent on the job's machine and sets the job to STARTING. When the agent has launched the process it reports back, and the job moves to RUNNING. A job that stays in STARTING is one where that acknowledgement never arrived. The script hasn't run, so its log won't help you.
Cause 1: The Agent Is Down or Unreachable
If the agent service is stopped, the host is down, or a firewall blocks the agent's port, the start request never gets a reply. autoping tests the round trip from the scheduler to the agent and back, so it's the first command to run.
Cause 2: The Agent's Disk Is Full
The agent writes spool files, job logs and its own logs before it can launch a job. When that filesystem is 100% full, it can't, so it never acknowledges the start. This is the cause behind many 'everything on one box is stuck' incidents, and it's often the agent's own logs that filled the disk.
Cause 3: The Agent Is Overloaded
Machines can be given a limit on how many jobs they run at once. When the agent is at that limit, or the host is overloaded, new jobs wait. The signature is different from the other causes: some jobs on the machine start, and others wait in line.
Release the Stuck Jobs
Freeing space or restoring the network doesn't move jobs that are already in STARTING: the scheduler is still waiting for an answer that won't come. Restart the agent so it starts clean, then reset each stuck job's status and start it again. Check first that the job didn't actually run, so you don't run a load twice.
Forty Jobs, One Full Disk
- STARTING means the agent hasn't answered: look at the agent, not the job.
- A whole machine stuck at once points to the agent or its host.
- Fixing the cause doesn't move jobs that are already stuck.
| File | Command / Code | Purpose |
|---|---|---|
| find_stuck.sh | autorep -J ALL | grep ' ST ' | What STARTING Means |
| ping_agent.sh | autoping -m finbatch01 | Cause 1 |
| disk_check.sh | df -h /opt | Cause 2 |
| load_check.sh | autorep -M finbatch01 -q | Cause 3 |
| release.sh | for j in $(autorep -J FIN_LOAD% | awk '$NF=="ST"{print $1}'); do | Release the Stuck Jobs |
Key takeaways
Common mistakes to avoid
3 patternsForce-starting stuck jobs
Debugging the script
Fixing the cause and walking away
Interview Questions on This Topic
An AutoSys job is stuck in STARTING. What does that mean?
Frequently Asked Questions
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.
20+ years shipping production infrastructure and CI/CD at scale. Everything here is grounded in real deployments.
That's AutoSys. Mark it forged?
3 min read · try the examples if you haven't