Interview Prep/Ansible/Cloud, AWX, Windows and Molecule

AWX jobs stay in `Pending` and never start

AdvancedTroubleshootingCloud, AWX, Windows and Molecule
Answer

Likely causes →

  • No instance in the job's instance group has free capacity (forks × concurrent jobs).
  • The job is waiting for a dependent project or inventory update that is itself stuck.
  • With container groups on Kubernetes, the job pod cannot be scheduled (resource requests, node selectors, quota) or cannot pull its EE image.

Diagnose →

kubectl -n awx get pods | grep automation-job
kubectl -n awx describe pod <automation-job-pod>     # events: Insufficient cpu, ImagePullBackOff
kubectl -n awx logs deploy/awx-task -c awx-task | tail -50

In the UI, check Instance Groups for capacity and the job's "Explanation" field.

Fix → Add capacity or adjust the job template's instance group, fix the stuck dependency job, and right-size the pod requests or fix the image pull secret.

Prevent → Monitor capacity and pending time, and set sensible job template forks so one job cannot consume an instance's whole capacity.

All Ansible questions Roadmap: Ansible

More on Cloud, AWX, Windows and Molecule