Project

Profile

Help

Issue #6590

Updated by ipanova@redhat.com about 4 years ago

The Task Group API currently returns only the number of tasks in each state. Users of this API need to be able to easily determine the overall state of the Task Group. Users of this API would also like to be able to see progress reporting from the individual tasks summarized. 

 The TaskGroupSerializer should include a new field called 'state'. This field should be dynamically generated. The possible states are: waiting (if all tasks are waiting), running (if any tasks are running), failed (if all tasks are in a terminal state and any of them are in a failed state), completed (if all tasks are in a completed state ,or or canceled (if the task group was canceled).  

 The progress reports from all the tasks associated with the task group should also be present. Any progress reports that have the same 'code' should be aggregated into one progress report - with the total and done fields summed.

Back