Skip to content

Commit

Permalink
Don't run lrem directly if we have a pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdewulf committed Dec 8, 2016
1 parent 6721463 commit 9e8922a
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 9e8922a

Please sign in to comment.