Skip to content

Commit b391597

Browse files
authored
Migrate redis provider to use airflow.sdk.configuration.conf (#59983)
1 parent 1eb6c61 commit b391597

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

providers/redis/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ requires-python = ">=3.10"
5959
# After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
6060
dependencies = [
6161
"apache-airflow>=2.11.0",
62-
"apache-airflow-providers-common-compat>=1.10.1",
62+
"apache-airflow-providers-common-compat>=1.10.1", # use next version
6363
# 5.0.2 excluded due to breaking changes which fixed in https://github.com/redis/redis-py/pull/3176
6464
"redis>=4.5.2,!=4.5.5,!=5.0.2",
6565
]

providers/redis/src/airflow/providers/redis/log/redis_task_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from functools import cached_property
2222
from typing import TYPE_CHECKING
2323

24-
from airflow.configuration import conf
24+
from airflow.providers.common.compat.sdk import conf
2525
from airflow.providers.redis.hooks.redis import RedisHook
2626
from airflow.providers.redis.version_compat import AIRFLOW_V_3_0_PLUS
2727
from airflow.utils.log.file_task_handler import FileTaskHandler

0 commit comments

Comments
 (0)