Permalink
Browse files

Don't run lrem directly if we have a pipeline

  • Loading branch information...
1 parent 6721463 commit 9e8922a099b0599aa26a424d90865147a821a931 @mtdewulf mtdewulf committed Dec 8, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 rq/queue.py
View
@@ -150,6 +150,7 @@ def remove(self, job_or_id, pipeline=None):
if pipeline is not None:
pipeline.lrem(self.key, 1, job_id)
+ return
return self.connection._lrem(self.key, 1, job_id)

0 comments on commit 9e8922a

Please sign in to comment.