Project

Profile

Help

Issue #1418

closed

pulp-admin tasks list [--all] includes group tasks

Added by dkliban@redhat.com over 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

When content applicability regeneration tasks are run (or any other tasks belonging to a task group), it is possible to have a lot of tasks running in the system. To avoid flooding the user with too much information when querying for tasks, it was decided to not include the group tasks in that list. The TaskCollectionView already excludes these tasks [0], but the TaskSearchView does not. The TaskSearchView is the one being used by "pulp-admin tasks list" command.

Recommended fix would be to add search criteria on the pulp-admin side that would tell the search API to exclude tasks where group_id is not None.

[0] https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/tasks.py#L71-L73

Also available in: Atom PDF