Backport "Failed task did not clean up properly resource reservations" to 3.7.z
In Katello, if migration to pulp 3 fails due to some issue, e.g. ran out of disk space, resources for failed tasks are not cleaned up.
Added by bmbouter almost 2 years ago
Adds additional lock cleanup to worker cleanup
As another layer of security to guard against lock cleanup not occurring due to Redis not delivering the _release_resource task, ensure all locks are also cleaned up even for tasks that are in their final states.
(cherry picked from commit 516df3147b56660fbc9b22c215e309da1ff8080e)