Project

Profile

Help

Story #5532

Task.error includes traceback for fatal download exceptions

Added by dkliban@redhat.com 5 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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

Also available in: Atom PDF