-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Avoid error when JTs deleted while task manager running #6084
Conversation
shoot, I should have realized how incomplete this was. It's hard to cover all cases, and fixing one error might just delay until another error. If I delete the job instead I get:
So I might try to push a fix that handles these a little better. |
awx/main/scheduler/dag_workflow.py
Outdated
for workflow_node in workflow_nodes.all(): | ||
# Intentionally prefetch related jobs and templates so that if they | ||
# are deleted while task manager runs, it will not cause an error | ||
for workflow_node in workflow_nodes.prefetch_related('job', 'unified_job_template').all(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea @AlanCoding I like this better. Good idea.
Build failed.
|
933fe14
to
73f4fee
Compare
Build succeeded.
|
73f4fee
to
dff3aff
Compare
Build failed.
|
this is getting a little too hard to work out than what I have time for at the moment |
We noticed here that openldap was getting downgraded and caused our test suite to blow up https://github.com/ansible/awx/runs/8118323342?check_suite_focus=true Co-authored-by: Shane McDonald <me@shanemcd.com>
SUMMARY
This addresses an event that erred the task manager.
the task manager code should never throw errors.
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
addresses: