def is_task_successful(request, task_id):
 response_data = {'task': {'id': task_id, 'executed': AsyncResult(task_id).successful()}}
 return HttpResponse(serialize(response_data), mimetype='application/json')

def is_task_successful ( request , task_id ) : response_data = { 'task' : { 'id' : task_id , 'executed' : AsyncResult ( task_id ) . successful ( ) } } return HttpResponse ( serialize ( response_data ) , mimetype = 'application/json' )
returns task execute status in json format .