Permalink
Browse files

Merge pull request #770 from mtdewulf/queue-cancel-pipeline-fix

Don't run lrem directly if we have a pipeline
  • Loading branch information...
2 parents 6721463 + 9e8922a commit 4fc032bfbfbe45da4db2c3ce9f4aee535dbfa7df @selwin selwin committed on GitHub 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 4fc032b

Please sign in to comment.