I’m tasked to monitor AWX and alert if jobs stay in pending state for long time. Fr this I pursued different AWX APIs without luck. So, posting following questions.
Q1) How can make a job go into pending status?
Q2) Is there any API to get all jobs in pending state?
Api/v2/metrics should provide you pending jobs.
Second if you want to make jobs going into pending Postgres database if it gets filled up jobs will go into pending that means you can make Postgres file system to fill up.
Other option is deploy awx operator version newer one and awx older version if your deployment is Kubernetes.