-
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
Improve error handling / display when Ansible Runner errors #10025
Improve error handling / display when Ansible Runner errors #10025
Conversation
Build succeeded.
|
awx/main/tasks.py
Outdated
@@ -1279,6 +1279,8 @@ def status_handler(self, status_data, runner_config): | |||
if k in job_env: | |||
job_env[k] = v | |||
self.instance = self.update_model(self.instance.pk, job_args=json.dumps(runner_config.command), job_cwd=runner_config.cwd, job_env=job_env) | |||
elif status_data['status'] == 'error': | |||
self.instance = self.update_model(self.instance.pk, result_traceback=status_data['result_traceback']) |
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.
but will the "result_traceback" key always be present??
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.
Fair enough question. I'll add some guardrails.
Build succeeded.
|
Build succeeded (gate pipeline).
|
Before you would see unhelpful error messages like:
Now you will see the underlying error: