def on_failure(self, history, *args, **kwargs):
        if len(history) < self._attempts:
            return RETRY
        return self._revert_action
dataset/ETHPy150Open openstack/taskflow/taskflow/retry.py/Times.on_failure/original