Commit 281606c1 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix cli.PollJob

feedback_fn wasn't passed to it.

Reviewed-by: iustinp
parent c36176cc
......@@ -392,7 +392,7 @@ def SendJob(ops, cl=None):
return job_id
def PollJob(job_id, cl=None):
def PollJob(job_id, cl=None, feedback_fn=None):
"""Function to poll for the result of a job.
@type job_id: job identified
......@@ -449,7 +449,7 @@ def SubmitOpCode(op, cl=None, feedback_fn=None):
job_id = SendJob([op], cl)
return PollJob(job_id, cl)
return PollJob(job_id, cl=cl, feedback_fn=feedback_fn)
def SubmitOrSend(op, opts, cl=None, feedback_fn=None):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment