https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
"""
        This attribute is deprecated.
        Please use :class:`airflow.models.taskinstance.TaskInstance.get_previous_ti`.
        """
        warnings.warn(
            """
            This attribute is deprecated.
            Please use `airflow.models.taskinstance.TaskInstance.get_previous_ti` method.
            """,
            RemovedInAirflow3Warning,
            stacklevel=2,
        )
        return self.get_previous_ti(state=DagRunState.SUCCESS)
    @provide_session
    def get_previous_execution_date(
        self,
        state: DagRunState | None = None,
        session: Session = NEW_SESSION,
    ) -> pendulum.DateTime | None:
        """
        Return the execution date from property previous_ti_success.
        :param state: If passed, it only take into account instances of a specific state.
        :param session: SQLAlchemy ORM Session
        """
        return _get_previous_execution_date(task_instance=self, state=state, session=session)
    @provide_session
    def get_previous_start_date(