Story #8554
closedProvide easy task cleanup api
100%
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
Updated by mmccune@redhat.com over 3 years ago
jsherril@redhat.com 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.
Updated by dalley over 3 years ago
- Related to Story #7513: bulk-delete tasks added
Updated by dalley over 3 years ago
- Related to deleted (Story #7513: bulk-delete tasks)
Updated by dalley over 3 years ago
- Has duplicate Story #7513: bulk-delete tasks added
Updated by ggainey about 3 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ggainey
Updated by pulpbot about 3 years ago
- Status changed from ASSIGNED to POST
Added by ggainey almost 3 years ago
Updated by ggainey almost 3 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|d6f5d00ef47d1cdb00863339336d65f399b59ee7.
Updated by pulpbot almost 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Added bulk-task-purge feature.
closes #8554.