From 09856f9924a6a44903047ea6c3585beb69952fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20R=C3=BCegg?= Date: Sat, 19 Nov 2022 05:53:31 +0100 Subject: [PATCH] pre-warm redis server version cache of job from queue (#1727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jan Rüegg --- rq/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rq/queue.py b/rq/queue.py index 7eaf84f..d21d097 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -559,6 +559,7 @@ class Queue: # Add Queue key set pipe.sadd(self.redis_queues_keys, self.key) + job.redis_server_version = self.get_redis_server_version() job.set_status(JobStatus.QUEUED, pipeline=pipe) job.origin = self.name