ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

Use a specific exception class for Pulp task failures #962

Closed cottsay closed 2 years ago

cottsay commented 2 years ago

I found it necessary to access the task instance to get additional error information while I was recovering the Pulp data this week.

In particular, an upload can fail if a package was already uploaded (i.e. has the same hash). The resulting task for the upload is marked as failed, but contains an extra field with the HREF of the existing artifact instance, which can be used to track down the existing package instance.