-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job remains pending then waiting few minutes #8080
Comments
Does this mean you're using a cloud-based external database, or postgres in a local container? |
Yes I'm using a cloud-based external database. Can it be related to this default setting "Isolated Launch Timeout:600" ? |
@zdriic I don't think so.
This suggests to me that AWX's periodic task manager is busy scheduling other work. Do you have any details on the specs of your postgres server? You might want to investigate slow queries on your postgres server - generally speaking, with cloud-based databases you're sort of at the mercy of their postgres tuning, and it's pretty easy to see issues like the one you're describing with an underprovisioned postgres instance (or a slow underlying disk). |
It seems that the problem comes from the link between AWX and an external database since AWX 11.0.0 (I would suggest since the first version with Redis instead of rabba itmq so AWX 10.0.0). It seems it's the same problem as this issue: 7273 Thanks for your help |
Duplicate of #7253 |
Hi, |
ISSUE TYPE
COMPONENT NAME
SUMMARY
I have installed AWX 14.1.0 successfully but when I run the default project , the job is in "pending" mode then "waiting" before running but I have to wait a lot of time (several minutes). Why ??
There are no scheduled tasks and AWX is empty (project/templates/etc...) I haven't added anything
ENVIRONMENT
STEPS TO REPRODUCE
Database As A Service : PostgreSQL 10
when I run the default project , the job is in "pending" mode then "waiting" before running but I have to wait a lot of time (several minutes). Why ??
There are no scheduled tasks and AWX is empty (no project/templates/etc...) and juste default project
I haven't added anything
In awx_task logs I have this :
2020-09-03 06:43:18,179 WARNING awx.main.dispatch scaling down worker pid:5778
2020-09-03 06:43:18,179 DEBUG awx.main.dispatch task acfa974a-1e43-4d3e-bfc5-3fdda446414c starting awx.main.scheduler.tasks.run_task_manager([])
2020-09-03 06:43:18,189 DEBUG awx.main.scheduler Running Tower task manager.
2020-09-03 06:43:18,197 DEBUG awx.main.tasks Starting periodic scheduler
2020-09-03 06:43:18,195 WARNING awx.main.dispatch worker exiting gracefully pid:5778
2020-09-03 06:43:18,202 DEBUG awx.main.tasks Last scheduler run was: 2020-09-03 06:43:18.124123+00:00
2020-09-03 06:43:18,203 DEBUG awx.main.tasks Not running periodic scheduler, another task holds lock
2020-09-03 06:43:18,215 DEBUG awx.main.scheduler Not running scheduler, another task holds lock
2020-09-03 06:43:18,219 DEBUG awx.main.scheduler Not running scheduler, another task holds lock
2020-09-03 06:43:18,235 DEBUG awx.main.scheduler Not running scheduler, another task holds lock
2020-09-03 06:43:18,248 DEBUG awx.main.dispatch task e53ebc4c-5766-4be0-8adb-7cdefbacd558 starting awx.main.tasks.awx_k8s_reaper([])
2020-09-03 06:43:18,248 DEBUG awx.main.dispatch task b6915098-ee1d-4614-9b76-4c27d4a16c2b starting awx.main.tasks.cluster_node_heartbeat([])
2020-09-03 06:43:18,249 DEBUG awx.main.dispatch task d8f5b7ae-0e2b-40b9-861a-03360dcb262d starting awx.main.scheduler.tasks.run_task_manager([])
2020-09-03 06:43:18,251 DEBUG awx.main.scheduler Running Tower task manager.
2020-09-03 06:43:18,251 DEBUG awx.main.dispatch task a032b520-5009-4763-956a-b5e8739ab4a2 starting awx.main.tasks.awx_periodic_scheduler(*[])
2020-09-03 06:43:18,255 DEBUG awx.main.tasks Cluster node heartbeat task.
2020-09-03 06:43:18,273 DEBUG awx.main.tasks Starting periodic scheduler
2020-09-03 06:43:18,282 DEBUG awx.main.scheduler Finishing Scheduler
2020-09-03 06:43:18,282 DEBUG awx.main.scheduler Not running scheduler, another task holds lock
2020-09-03 06:43:18,285 DEBUG awx.main.tasks Last scheduler run was: 2020-09-03 06:43:18.198730+00:00
RESULT 2
OKREADY
RESULT 2
OKREADY
RESULT 2
OKREADY
RESULT 2
OKREADY
RESULT 2
OKREADY
RESULT 2
OKREADY
EXPECTED RESULTS
The job must be executed immediately.
ACTUAL RESULTS
The job remains "pending" for a few minutes before switching to "waiting" and then a few minutes later it is "running" and the job is running fine.
ADDITIONAL INFORMATION
It's seems to be the same as #3189 or #5617
Thanks in advance
The text was updated successfully, but these errors were encountered: