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 b6318ffabc Limit celery by excluding 5.3.2 and 5.3.3 (#34031)
b6318ffabc is described below

commit b6318ffabce8cc3fdb02c30842726476b7e1fcca
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Sep 2 15:19:21 2023 +0200

    Limit celery by excluding 5.3.2 and 5.3.3 (#34031)
    
    There is a new database field introduced by Celery in 5.3.2 and
    repeated in 5.3.3 wihch is not included in automated migrations,
    so users upgrading celery might have failing celery installation.
    
    The issue is already reported and acknowledged, so it is lilely
    to be fixed in 5.3.4 - so excluding 5.3.2 and 5.3.4 is the best
    approach.
---
 airflow/providers/celery/provider.yaml | 3 ++-
 generated/provider_dependencies.json   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/airflow/providers/celery/provider.yaml 
b/airflow/providers/celery/provider.yaml
index 5c49a665d6..c9e7e62860 100644
--- a/airflow/providers/celery/provider.yaml
+++ b/airflow/providers/celery/provider.yaml
@@ -46,7 +46,8 @@ dependencies:
   # Uses Celery for CeleryExecutor, and we also know that Kubernetes Python 
client follows SemVer
   # 
(https://docs.celeryq.dev/en/stable/contributing.html?highlight=semver#versions).
   # Make sure that the limit here is synchronized with [celery] extra in the 
airflow core
-  - celery>=5.3.0,<6
+  # The 5.3.3/5.3.2 limit comes from 
https://github.com/celery/celery/issues/8470
+  - celery>=5.3.0,<6,!=5.3.3,!=5.3.2
   - flower>=1.0.0
   - google-re2>=1.0
 
diff --git a/generated/provider_dependencies.json 
b/generated/provider_dependencies.json
index d130259abb..353fa3c50e 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -239,7 +239,7 @@
   "celery": {
     "deps": [
       "apache-airflow>=2.4.0",
-      "celery>=5.3.0,<6",
+      "celery>=5.3.0,<6,!=5.3.3,!=5.3.2",
       "flower>=1.0.0",
       "google-re2>=1.0"
     ],

Reply via email to