Project

Profile

Help

Issue #2787

Fatal exceptions from tasks not being reported by tasks API

Added by dkliban@redhat.com almost 3 years ago. Updated 6 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
No
Groomed:
No
Sprint Candidate:
Yes
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

The Task model has an error field. It is a JSON field. After a task succeeds or fails, this field is supposed to contain a dictionary representing any fatal exception encountered during the task. If no fatal exception is encountered the field should be set to None. This happens here[0] in the code, but the API for tasks does not report an 'error' field.

[0] https://github.com/pulp/pulp/blob/3.0-dev/platform/pulp/tasking/tasks.py#L322

Associated revisions

Revision 12d36be1 View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Problem: tasks API ommits error field in response

Solution: update the serializer for Task model by renaming 'result' field to 'error'

closes #2787

Revision 12d36be1 View on GitHub
Added by dkliban@redhat.com almost 3 years ago

Problem: tasks API ommits error field in response

Solution: update the serializer for Task model by renaming 'result' field to 'error'

closes #2787

History

#1 Updated by dkliban@redhat.com almost 3 years ago

  • Tracker changed from Story to Issue
  • Subject changed from Record fatal exceptions from tasks in 'error' field of Task object to Fatal exceptions from tasks not being reported by tasks API
  • Description updated (diff)
  • Severity set to 2. Medium
  • Triaged set to No

#2 Updated by dkliban@redhat.com almost 3 years ago

  • Status changed from NEW to MODIFIED

#4 Updated by daviddavis about 1 year ago

  • Sprint/Milestone set to 3.0.0

#5 Updated by bmbouter about 1 year ago

  • Tags deleted (Pulp 3)

#6 Updated by bmbouter 6 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF