Actions
Story #7513
closedbulk-delete tasks
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Q3-2021
Description
Currently, tasks can only deleted one-at-a-time. It would be useful to have a way to bulk-delete tasks by state and/or by date range.
In a follow-up discussion on #pulp it was proposed that task deletion could also be automatic, using RQ's auto-schedule feature to e.g. delete tasks older than X minutes every Y minutes, where X and Y are configurable with sane defaults and the ability to completely opt out, e.g. for audit reasons.
Related issues
Updated by ggainey about 4 years ago
Adding discussion from #pulp:
<thm> just noticed that tasks will stay there until deleted. so, two questions: is there a way to remove old tasks in one go? and, should the examples in the doc be extended to delete successful tasks after reading the results?
<ggainey> thm: hm, I think we only provide one-at-a-time delete - partially due to users wanting task-history to be an audit-trail
<ggainey> but those both sound like solid ideas
<ggainey> delete-by-state and delete-by-date-range
<ggainey> dkliban: bmbouter ^^ wdyt?
<bmbouter> we need a bulk delete for sure
<bmbouter> both? I mean they both sound useful
<ggainey> indeed
<bmbouter> also at some point we could make them auto-delete, RQ didn't have an auto-schedule feature before but it does now in the version we use
<bmbouter> so it could run every X minutes and delete tasks Y minutes old, etc
<bmbouter> in addition, separate from the user-driven delete
<bmbouter> X and Y would likely be configurable with sane defaults
<ggainey> yeah, exactly - table-maintenance is def A Thing that's really useful, as long as it's under the admin's control
<ggainey> thm: tell you what - can you open an issue for us at htps:t//pulp.plan.io/projects/pulp/issues/new with this discussion innit?
<ggainey> and we can get this on the suggested-features list
<thm> #7513
Updated by fao89 about 4 years ago
- Tracker changed from Issue to Story
- % Done set to 0
- Severity deleted (
2. Medium) - Triaged deleted (
No)
Updated by dalley over 3 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by dalley over 3 years ago
- Related to Story #8554: Provide easy task cleanup api added
Updated by dalley over 3 years ago
- Related to deleted (Story #8554: Provide easy task cleanup api)
Updated by dalley over 3 years ago
- Is duplicate of Story #8554: Provide easy task cleanup api added
Updated by dalley over 3 years ago
Future discussion on https://pulp.plan.io/issues/8554
Actions