Story #7513
closed
Status:
CLOSED - DUPLICATE
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.
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
- Tracker changed from Issue to Story
- % Done set to 0
- Severity deleted (
2. Medium)
- Triaged deleted (
No)
- Status changed from NEW to CLOSED - DUPLICATE
- Related to Story #8554: Provide easy task cleanup api added
- Related to deleted (Story #8554: Provide easy task cleanup api)
- Is duplicate of Story #8554: Provide easy task cleanup api added
Also available in: Atom
PDF