Merge pull request #761 from mtdewulf/pass-pipeline-to-push-job-id

Pass pipeline to push_job_id from enqueue_job
main
Selwin Ong 8 years ago committed by GitHub
commit 2270369bd5

@ -290,12 +290,12 @@ class Queue(object):
job.timeout = self.DEFAULT_TIMEOUT job.timeout = self.DEFAULT_TIMEOUT
job.save(pipeline=pipe) job.save(pipeline=pipe)
if self._async:
self.push_job_id(job.id, pipeline=pipe, at_front=at_front)
if pipeline is None: if pipeline is None:
pipe.execute() pipe.execute()
if self._async:
self.push_job_id(job.id, at_front=at_front)
return job return job
def enqueue_dependents(self, job, pipeline=None): def enqueue_dependents(self, job, pipeline=None):

Loading…
Cancel
Save