(request, task_id)
return JsonResponse({'task': {
        'id': task_id,
        'executed': AsyncResult(task_id).successful(),
    }})
Return task execution status in JSON format.
Return task execution status in JSON format.
Return task execution status in JSON format .
def is_task_successful(request, task_id):
    """Return task execution status in JSON format."""
    return JsonResponse({'task': {
        'id': task_id,
        'executed': AsyncResult(task_id).successful(),
    }})
def is_task_successful ( request , task_id ) : return JsonResponse ( { 'task' : { 'id' : task_id , 'executed' : AsyncResult ( task_id ) . successful ( ) , } } )