Project

Profile

Help

Story #1206

closed

As an API user, I can get summary status for a task group

Added by dkliban@redhat.com over 7 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
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

Blocks RPM Support - Story #20: As a user, my applicability data is calculated in parallelCLOSED - CURRENTRELEASEdkliban@redhat.com

Actions

Also available in: Atom PDF