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

Don't run lrem directly if we have a pipeline
main
Selwin Ong 8 years ago committed by GitHub
commit 4fc032bfbf

@ -150,6 +150,7 @@ class Queue(object):
if pipeline is not None: if pipeline is not None:
pipeline.lrem(self.key, 1, job_id) pipeline.lrem(self.key, 1, job_id)
return
return self.connection._lrem(self.key, 1, job_id) return self.connection._lrem(self.key, 1, job_id)

Loading…
Cancel
Save