Actions
Story #1206
closedAs an API user, I can get summary status for a task group
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.8.0
Groomed:
No
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Quarter:
Description
- Documentation on using the Group Task Status
- Add pulp/api/v2/task_groups/<group_id>/state_summary in urls.py
- Add a view to handle the new endpoint
- The view should check the database for the status of all tasks that have the specific group_id and return a status based on that information.
- The view should return JSON structure that looks like:
{
"_href": "/pulp/api/v2/task_groups/0fe4fcab-a040-11e1-a71c-00508d977dff/state_summary",
"finished": 4,
"canceled": 0,
"error": 1,
"running": 3,
"waiting": 0,
"group_id": "0fe4fcab-a040-11e1-a71c-00508d977dff",
}
Related issues
Actions
Adds task groups status API endpoint
https://pulp.plan.io/issues/1206 closes #1206