Commit cff5fa7f authored by Iustin Pop's avatar Iustin Pop
Browse files

Add the options attribute to cli.JobExecutor


Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 265e6244
......@@ -1759,13 +1759,14 @@ class JobExecutor(object):
GetResults() calls.
"""
def __init__(self, cl=None, verbose=True):
def __init__(self, cl=None, verbose=True, opts=None):
self.queue = []
if cl is None:
cl = GetClient()
self.cl = cl
self.verbose = verbose
self.jobs = []
self.opts = opts
def QueueJob(self, name, *ops):
"""Record a job for later submit.
......@@ -1773,6 +1774,7 @@ class JobExecutor(object):
@type name: string
@param name: a description of the job, will be used in WaitJobSet
"""
SetGenericOpcodeOpts(ops, self.opts)
self.queue.append((name, ops))
def SubmitPending(self):
......
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