Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #770 from mtdewulf/queue-cancel-pipeline-fix
Don't run lrem directly if we have a pipeline
  • Loading branch information
selwin committed Dec 8, 2016
2 parents 6721463 + 9e8922a commit 4fc032b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rq/queue.py
Expand Up @@ -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)

Expand Down

0 comments on commit 4fc032b

Please sign in to comment.