Closed warownia1 closed 4 years ago
batch_submit
runs the jobs immediately end returns an iterable of jobs statuses. Even if the iterable may defer status retrieval, the requirement for batch_run
implementations is that it returns after the jobs are started.
When the
batch_run
is called it calls batch submit and returns a generator object. Any errors raised while iterating over the generator are not caught bybatch_run
but are raised in the caller context.Example:
Changing the signature of
gen
to:handles the exceptions