From b50f1e2121171a2079282753ef699c07bcfe8918 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sat, 7 Nov 2020 22:27:30 +0700 Subject: [PATCH] Redis does not accept `parser_class` argument (#1373) --- rq/scheduler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rq/scheduler.py b/rq/scheduler.py index 561ee5a..a041a71 100644 --- a/rq/scheduler.py +++ b/rq/scheduler.py @@ -40,6 +40,9 @@ class RQScheduler(object): self._scheduled_job_registries = [] self.lock_acquisition_time = None self._connection_kwargs = connection.connection_pool.connection_kwargs + # Redis does not accept parser_class argument which is sometimes present + # on connection_pool kwargs, for example when hiredis is used + self._connection_kwargs.pop('parser_class', None) self._connection_class = connection.__class__ # client connection_class = connection.connection_pool.connection_class if issubclass(connection_class, SSLConnection):