소스 검색

New style CELERY_REDIS_* configuration should take precedence over old style REDIS_* configuration.

Closes #508
Joshua "jag" Ginsberg 13 년 전
부모
커밋
b7c9547881
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/backends/redis.py

+ 1 - 1
celery/backends/redis.py

@@ -42,7 +42,7 @@ class RedisBackend(KeyValueStoreBackend):
 
         # For compatability with the old REDIS_* configuration keys.
         def _get(key):
-            for prefix in "REDIS_%s", "CELERY_REDIS_%s":
+            for prefix in "CELERY_REDIS_%s", "REDIS_%s":
                 try:
                     return conf[prefix % key]
                 except KeyError: