This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1ce3b79de95 remove internal_api_call decorator (#44525)
1ce3b79de95 is described below
commit 1ce3b79de95a69f0142530b4ca1891f13e7a5546
Author: Kalyan R <[email protected]>
AuthorDate: Mon Dec 2 00:26:01 2024 +0530
remove internal_api_call decorator (#44525)
---
airflow/models/variable.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/airflow/models/variable.py b/airflow/models/variable.py
index 563cac46e8c..4b3e4f77e47 100644
--- a/airflow/models/variable.py
+++ b/airflow/models/variable.py
@@ -25,7 +25,6 @@ from sqlalchemy import Boolean, Column, Integer, String,
Text, delete, select
from sqlalchemy.dialects.mysql import MEDIUMTEXT
from sqlalchemy.orm import declared_attr, reconstructor, synonym
-from airflow.api_internal.internal_api_call import internal_api_call
from airflow.configuration import ensure_secrets_loaded
from airflow.models.base import ID_LEN, Base
from airflow.models.crypto import get_fernet
@@ -182,7 +181,6 @@ class Variable(Base, LoggingMixin):
@staticmethod
@provide_session
- @internal_api_call
def _set(
key: str,
value: Any,
@@ -238,7 +236,6 @@ class Variable(Base, LoggingMixin):
@staticmethod
@provide_session
- @internal_api_call
def _update(
key: str,
value: Any,
@@ -279,7 +276,6 @@ class Variable(Base, LoggingMixin):
@staticmethod
@provide_session
- @internal_api_call
def _delete(key: str, session: Session = None) -> int:
"""
Delete an Airflow Variable for a given key.