Skip to content

Commit

Permalink
Remove deprecated DEFAULT_CELERY_CONFIG from core config_templates (#…
Browse files Browse the repository at this point in the history
…45017)

This default dict has been moved to the celery provider. We no longer
need to support the old import in Airflow 3.
  • Loading branch information
jedcunningham authored Dec 18, 2024
1 parent 2a33da0 commit 0ff35c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
11 changes: 0 additions & 11 deletions airflow/config_templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
18 changes: 18 additions & 0 deletions newsfragments/1.significant.rst
Original file line number Diff line number Diff line change
@@ -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``

0 comments on commit 0ff35c7

Please sign in to comment.