From 3f5e94aa8cd3136caf2ecf5cd64729a4c4364abf Mon Sep 17 00:00:00 2001 From: Kirill Arkhipenko Date: Sat, 11 Dec 2021 14:14:02 +0300 Subject: [PATCH] fix job.delete with remove_from_queue=False (#1601) --- rq/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/job.py b/rq/job.py index d773250..8fef0f3 100644 --- a/rq/job.py +++ b/rq/job.py @@ -792,7 +792,7 @@ class Job: connection = pipeline if pipeline is not None else self.connection - self._remove_from_registries(pipeline=pipeline, remove_from_queue=True) + self._remove_from_registries(pipeline=pipeline, remove_from_queue=remove_from_queue) if delete_dependents: self.delete_dependents(pipeline=pipeline)