mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Attempt to surface streaming errors that were being eaten (#10918)
This commit is contained in:
parent
940c189c12
commit
274e487a96
@ -3078,7 +3078,13 @@ class AWXReceptorJob:
|
||||
return res
|
||||
|
||||
if not self.task.instance.result_traceback:
|
||||
raise RuntimeError(detail)
|
||||
try:
|
||||
resultsock = receptor_ctl.get_work_results(self.unit_id, return_sockfile=True)
|
||||
lines = resultsock.readlines()
|
||||
self.task.instance.result_traceback = b"".join(lines).decode()
|
||||
self.task.instance.save(update_fields=['result_traceback'])
|
||||
except Exception:
|
||||
raise RuntimeError(detail)
|
||||
|
||||
return res
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user