(request, group_id)
return JsonResponse({'group': response_data})
Return group id and its async results status & result in JSON format.
Return group id and its async results status & result in JSON format.
Return group id and its async results status & result in JSON format .
def group_status(request, group_id):
    """Return group id and its async results status & result in JSON format."""
    result = GroupResult.restore(group_id)
    retval = [
        {"result": async_result.result, "status": async_result.status}
        for async_result in result.results
    ]
    response_data = {'id': group_id, 'results': retval}
    return JsonResponse({'group': response_data})
def group_status ( request , group_id ) : result = GroupResult . restore ( group_id ) retval = [ { "result" : async_result . result , "status" : async_result . status } for async_result in result . results ] response_data = { 'id' : group_id , 'results' : retval } return JsonResponse ( { 'group' : response_data } )