Story #5532
Task.error includes traceback for fatal download exceptions
Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Task.set_failed()[0] always puts the traceback into the Task.error field. In cases of errors during downloads, this method should omit the traceback. Only the error message should be included.
This behavior should occur for any ClientResponseError[1].
[0] https://github.com/pulp/pulpcore/blob/91519235026ce3be192200a0905816175eda4b6f/pulpcore/app/models/task.py#L386
[1] https://github.com/aio-libs/aiohttp/blob/3.6/aiohttp/client_exceptions.py#L45
Please register to edit this issue