Skip to content

Commit

Permalink
Remove internal_api_call from models/dag (apache#44502)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 authored Nov 30, 2024
1 parent e1f0f1f commit 8e7797f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions airflow/models/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
from sqlalchemy.sql import Select, expression

from airflow import settings, utils
from airflow.api_internal.internal_api_call import internal_api_call
from airflow.configuration import conf as airflow_conf, secrets_backend_list
from airflow.exceptions import (
AirflowException,
Expand Down Expand Up @@ -776,7 +775,6 @@ def get_serialized_fields(cls):
return TaskSDKDag.get_serialized_fields() | {"_processor_dags_folder"}

@staticmethod
@internal_api_call
@provide_session
def fetch_callback(
dag: DAG,
Expand Down Expand Up @@ -874,7 +872,6 @@ def get_active_runs(self):
return active_dates

@staticmethod
@internal_api_call
@provide_session
def fetch_dagrun(dag_id: str, run_id: str, session: Session = NEW_SESSION) -> DagRun | DagRunPydantic:
"""
Expand Down Expand Up @@ -2141,7 +2138,6 @@ def get_dagmodel(dag_id: str, session: Session = NEW_SESSION) -> DagModel | None
)

@classmethod
@internal_api_call
@provide_session
def get_current(cls, dag_id: str, session=NEW_SESSION) -> DagModel | DagModelPydantic:
return session.scalar(select(cls).where(cls.dag_id == dag_id))
Expand All @@ -2161,7 +2157,6 @@ def get_is_active(self, *, session: Session | None = None) -> bool:
return self.is_active

@staticmethod
@internal_api_call
@provide_session
def get_paused_dag_ids(dag_ids: list[str], session: Session = NEW_SESSION) -> set[str]:
"""
Expand Down Expand Up @@ -2238,7 +2233,6 @@ def dag_display_name(self) -> str:
)

@classmethod
@internal_api_call
@provide_session
def deactivate_deleted_dags(
cls,
Expand Down

0 comments on commit 8e7797f

Please sign in to comment.