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
        """
        from airflow.models.taskinstance import _get_previous_execution_date
        return _get_previous_execution_date(task_instance=self, state=state, session=session)
    def email_alert(self, exception, task: BaseOperator) -> None:
        """
        Send alert email with exception information.
        :param exception: the exception
        :param task: task related to the exception
        """
        from airflow.models.taskinstance import _email_alert
        _email_alert(task_instance=self, exception=exception, task=task)
    def get_email_subject_content(