'Handler called if the task was successfully processed.'

def on_success(self, failed__retval__runtime, **kwargs):

    (failed, retval, runtime) = failed__retval__runtime
    if failed:
        if isinstance(retval.exception, (SystemExit, KeyboardInterrupt)):
            raise retval.exception
        return self.on_failure(retval, return_ok=True)
    task_ready(self)
    if self.task.acks_late:
        self.acknowledge()
    self.send_event(u'task-succeeded', result=retval, runtime=runtime)
