'Mark task as successfully executed.'

def mark_as_done(self, task_id, result, request=None, store_result=True, state=states.SUCCESS):

    if store_result:
        self.store_result(task_id, result, state, request=request)
    if (request and request.chord):
        self.on_chord_part_return(request, state, result)
