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 0ff35c7185f Remove deprecated `DEFAULT_CELERY_CONFIG` from core 
config_templates (#45017)
0ff35c7185f is described below

commit 0ff35c7185f942ba9a8bc9fb0802eeba4c2afaec
Author: Jed Cunningham <[email protected]>
AuthorDate: Wed Dec 18 06:23:55 2024 -0700

    Remove deprecated `DEFAULT_CELERY_CONFIG` from core config_templates 
(#45017)
    
    This default dict has been moved to the celery provider. We no longer
    need to support the old import in Airflow 3.
---
 airflow/config_templates/__init__.py | 11 -----------
 newsfragments/1.significant.rst      | 18 ++++++++++++++++++
 2 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/airflow/config_templates/__init__.py 
b/airflow/config_templates/__init__.py
index 4bdf46b9a97..217e5db9607 100644
--- a/airflow/config_templates/__init__.py
+++ b/airflow/config_templates/__init__.py
@@ -15,14 +15,3 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-from __future__ import annotations
-
-from airflow.utils.deprecation_tools import add_deprecated_classes
-
-__deprecated_classes = {
-    "default_celery": {
-        "DEFAULT_CELERY_CONFIG": 
"airflow.providers.celery.executors.default_celery.DEFAULT_CELERY_CONFIG",
-    },
-}
-
-add_deprecated_classes(__deprecated_classes, __name__, {}, "The `celery` 
provider must be >= 3.3.0 for that.")
diff --git a/newsfragments/1.significant.rst b/newsfragments/1.significant.rst
new file mode 100644
index 00000000000..aef05e779e6
--- /dev/null
+++ b/newsfragments/1.significant.rst
@@ -0,0 +1,18 @@
+Remove deprecated ``DEFAULT_CELERY_CONFIG`` from config templates
+
+``DEFAULT_CELERY_CONFIG`` has been moved into the celery provider and
+should be imported from 
``airflow.providers.celery.executors.default_celery.DEFAULT_CELERY_CONFIG``.
+
+* Types of change
+
+  * [ ] DAG changes
+  * [x] Config changes
+  * [ ] API changes
+  * [ ] CLI changes
+  * [ ] Behaviour changes
+  * [ ] Plugin changes
+  * [ ] Dependency change
+
+* Migration rules needed
+
+    * AIR303 rewrite 
``airflow.config_templates.default_celery.DEFAULT_CELERY_CONFIG`` to 
``airflow.providers.celery.executors.default_celery.DEFAULT_CELERY_CONFIG``

Reply via email to