class_docstr: Dep for valid DagRun run_id to schedule from scheduler.
class_docstr_tok: ["Dep","for","valid","DagRun","run_id","to","schedule","from","scheduler","."]
docstr: Determine if the DagRun is valid for scheduling from scheduler.
  
  :param ti: the task instance to get the dependency status for
  :param session: database session
  :param dep_context: the context for which this dependency should be evaluated for
  :return: True if DagRun is valid for scheduling from scheduler.
docstr_tok: ["Determine","if","the","DagRun","is","valid","for","scheduling","from","scheduler",".",":","param","ti",":","the","task","instance","to","get","the","dependency","status","for",":","param","session",":","database","session",":","param","dep_context",":","the","context","for","which","this","dependency","should","be","evaluated","for",":","return",":","True","if","DagRun","is","valid","for","scheduling","from","scheduler","."]
code: def _get_dep_statuses(self, ti, session, dep_context=None):
      """
      Determine if the DagRun is valid for scheduling from scheduler.
  
      :param ti: the task instance to get the dependency status for
      :param session: database session
      :param dep_context: the context for which this dependency should be evaluated for
      :return: True if DagRun is valid for scheduling from scheduler.
      """
      dagrun = ti.get_dagrun(session)
  
      if dagrun.run_type == DagRunType.BACKFILL_JOB:
          yield self._failing_status(
              reason=f"Task's DagRun run_type is {dagrun.run_type} and cannot be run by the scheduler"
          )
  
imports: from __future__ import annotations
  from airflow.ti_deps.deps.base_ti_dep import BaseTIDep
  from airflow.utils.session import provide_session
  from airflow.utils.types import DagRunType
label_desc: Use image node_id 1 for calling the DagRunNotBackfillDep obj's underlying member method code with example usage: obj._get_dep_statuses(ti, session, dep_context) without return types