This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-7-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v2-7-test by this push:
     new 20bfcafa31 Limit Redis dependencies to match celery limits (#33773)
20bfcafa31 is described below

commit 20bfcafa31451fe81d9a7e65794e5ea76573f7fb
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Aug 26 18:02:08 2023 +0200

    Limit Redis dependencies to match celery limits (#33773)
    
    Redis 5 relased last week breaks celery, celery is limiting it for
    now and will resolve it later, we should similarly limit redis on
    our side to limit redis for users who will not upgrade to celery
    that will be released shortly.
    
    Fixes: #33744
    (cherry picked from commit 3ba994d8f4c4b5ce3828bebcff28bbfc25170004)
---
 airflow/providers/redis/provider.yaml | 6 +++++-
 generated/provider_dependencies.json  | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/airflow/providers/redis/provider.yaml 
b/airflow/providers/redis/provider.yaml
index 2169ffdc9c..6ae19910a9 100644
--- a/airflow/providers/redis/provider.yaml
+++ b/airflow/providers/redis/provider.yaml
@@ -38,7 +38,11 @@ versions:
 
 dependencies:
   - apache-airflow>=2.4.0
-  - redis>=3.2.0
+  # We limit redis to <5.0.0 because of incompatibility with celery. Both 
Celery and Kombu limited it
+  # and deferred fixing it for later, we should bump the limit once they do. 
Also !=4.5.5 matches celery
+  # limits and prevents installing 4.5.5 which is broken.
+  # https://github.com/celery/celery/pull/8442, 
https://github.com/celery/kombu/pull/1776
+  - redis>=4.5.2,<5.0.0,!=4.5.5
 
 integrations:
   - integration-name: Redis
diff --git a/generated/provider_dependencies.json 
b/generated/provider_dependencies.json
index 01d3302ffe..e2b1513f7e 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -750,7 +750,7 @@
   "redis": {
     "deps": [
       "apache-airflow>=2.4.0",
-      "redis>=3.2.0"
+      "redis>=4.5.2,<5.0.0,!=4.5.5"
     ],
     "cross-providers-deps": [],
     "excluded-python-versions": []

Reply via email to