Skip to content

Commit a370e11

Browse files
authored
remove deprecation (#56835)
1 parent b7cb84e commit a370e11

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

providers/celery/src/airflow/providers/celery/executors/celery_executor_utils.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import subprocess
3030
import sys
3131
import traceback
32-
import warnings
3332
from collections.abc import Collection, Mapping, MutableMapping, Sequence
3433
from concurrent.futures import ProcessPoolExecutor
3534
from typing import TYPE_CHECKING, Any
@@ -42,7 +41,7 @@
4241

4342
import airflow.settings as settings
4443
from airflow.configuration import conf
45-
from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowTaskTimeout
44+
from airflow.exceptions import AirflowException, AirflowTaskTimeout
4645
from airflow.executors.base_executor import BaseExecutor
4746
from airflow.providers.celery.version_compat import AIRFLOW_V_3_0_PLUS, timeout
4847
from airflow.stats import Stats
@@ -100,16 +99,6 @@ def _get_celery_app() -> Celery:
10099
celery_configuration = DEFAULT_CELERY_CONFIG
101100

102101
celery_app_name = conf.get("celery", "CELERY_APP_NAME")
103-
if celery_app_name == "airflow.executors.celery_executor":
104-
warnings.warn(
105-
"The celery.CELERY_APP_NAME configuration uses deprecated package name: "
106-
"'airflow.executors.celery_executor'. "
107-
"Change it to `airflow.providers.celery.executors.celery_executor`, and "
108-
"update the `-app` flag in your Celery Health Checks "
109-
"to use `airflow.providers.celery.executors.celery_executor.app`.",
110-
AirflowProviderDeprecationWarning,
111-
stacklevel=2,
112-
)
113102

114103
return Celery(celery_app_name, config_source=celery_configuration)
115104

0 commit comments

Comments
 (0)