Project

Profile

Help

Story #8554

closed

Provide easy task cleanup api

Added by jsherril@redhat.com over 3 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:
Q4-2021

Description

Today a user of pulp would have to manually request all tasks using a filter and then manually trigger a delete for each one. It would be much simpler if we could simply call an API and trigger a task that would bulk delete all tasks matching some set of critera such as:

created before some date with states cancelled, completed, skipped

I think somehow using a list query to delete those (such as being able to pass the href /pulp/api/v3/tasks?state__in=completed,skipped) would be pretty slick.


Related issues

Has duplicate Pulp - Story #7513: bulk-delete tasksCLOSED - DUPLICATE

Actions
Actions #1

Updated by mmccune@redhat.com over 3 years ago

wrote:

Today a user of pulp would have to manually request all tasks using a filter and then manually trigger a delete for each one. It would be much simpler if we could simply call an API and trigger a task that would bulk delete all tasks matching some set of critera such as:

for high volume installations with many tasks desiring to issue periodic cleanup routines, having a mechanism for bulk deletion will be ideal. Issuing thousands or millions of single delete API calls during a cleanup limits the ability to scale.

Actions #2

Updated by dalley over 3 years ago

Actions #3

Updated by dalley over 3 years ago

Actions #4

Updated by dalley over 3 years ago

Actions #5

Updated by dalley over 3 years ago

  • Quarter set to Q4-2021
Actions #6

Updated by ggainey about 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ggainey
Actions #7

Updated by pulpbot about 3 years ago

  • Status changed from ASSIGNED to POST
Actions #8

Updated by bmbouter almost 3 years ago

  • Sprint/Milestone set to 3.17.0

Added by ggainey almost 3 years ago

Revision d6f5d00e | View on GitHub

Added bulk-task-purge feature.

closes #8554.

Actions #9

Updated by ggainey almost 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #10

Updated by pulpbot almost 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF