From 5a08548451a5804b3f8dc21cd02723dc91e46c74 Mon Sep 17 00:00:00 2001 From: sunny316 Date: Wed, 16 Oct 2019 17:17:01 +0530 Subject: [PATCH] Fixed setex method call : argument position was wrong --- celery_redis_cluster_backend/redis_cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celery_redis_cluster_backend/redis_cluster.py b/celery_redis_cluster_backend/redis_cluster.py index b41034f..cf4641b 100644 --- a/celery_redis_cluster_backend/redis_cluster.py +++ b/celery_redis_cluster_backend/redis_cluster.py @@ -121,7 +121,7 @@ def set(self, key, value, **retry_policy): def _set(self, key, value): if hasattr(self, 'expires'): - self.client.setex(key, value, self.expires) + self.client.setex(key, self.expires, value) else: self.client.set(key, value)