Browse Source

redis result backend: Use CELERY_TASK_RESULT_EXPIRES instead of CELERY_AMQP_TASK_RESULT_EXPIRES.

Ask Solem 14 years ago
parent
commit
61fc0a6ec5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      celery/backends/pyredis.py

+ 1 - 1
celery/backends/pyredis.py

@@ -65,7 +65,7 @@ class RedisBackend(KeyValueStoreBackend):
                                     self.redis_password)
         self.expires = expires
         if self.expires is None:
-            self.expires = conf.AMQP_TASK_RESULT_EXPIRES
+            self.expires = conf.TASK_RESULT_EXPIRES
         if isinstance(self.expires, timedelta):
             self.expires = timeutils.timedelta_seconds(self.expires)
         if self.expires is not None: