Project

Profile

Help

Task #2683

closed

handle working directories in base PulpTask

Added by amacdona@redhat.com about 7 years ago. Updated almost 5 years ago.

Status:
CLOSED - NOTABUG
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

Creation and cleanup of `working_dir` should owned by the `PulpTask` class [0]. Creation of a new `working_dir` should occur on `PulpTask.__call__()` and cleanup should occur on `PulpTask.on_success()` and `PulpTask.on_failure()`.

`PulpTask`'s child, `UserFacingTask` will need to be updated to use super() to pick up this functionality.

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

Also available in: Atom PDF