'Handler called if the task should be retried.'

def on_retry(self, exc_info):

    if self.task.acks_late:
        self.acknowledge()
    self.send_event(u'task-retried', exception=safe_repr(exc_info.exception.exc), traceback=safe_str(exc_info.traceback))
