How do you schedule recurring jobs in AWX without overlapping runs?
BeginnerProductionAWX, AAP and Cloud Integration
Answer
Add a schedule to the job template or workflow (RRULE-based, with a time zone), for example nightly drift checks or weekly patching.
To stop overlaps:
- Leave Concurrent Jobs (
allow_simultaneous) disabled on the template. A new run waits until the previous one finishes instead of running in parallel against the same hosts. - Make the schedule interval comfortably longer than the job's normal duration.
- Set a job timeout on the template so a stuck run does not block all later ones.
- awx.awx.schedule:
name: Nightly drift check
unified_job_template: "Drift check - prod"
rrule: "DTSTART;TZID=Asia/Kolkata:20261110T020000 RRULE:FREQ=DAILY;INTERVAL=1"
state: present
More on AWX, AAP and Cloud Integration
AWX or Red Hat Ansible Automation Platform: what is the difference and what do you pay for?BeginnerWhat are the core objects in AWX and how do they fit together?BeginnerHow do you manage AWX configuration as code?IntermediateHow do custom credential types work in AWX?AdvancedHow do you connect AWX to an external secrets manager?IntermediateHow do you trigger AWX jobs from CI or other systems?Intermediate