7 """Factory that creates 1 job per digit found in the decimal representation of 'b_multiplier'""" 17 sub_tasks = [ {
'digit': _ }
for _
in set(str(b_multiplier)).difference(
'01') ]
18 self.
param(
'sub_tasks', sub_tasks)
22 time.sleep( self.
param(
'take_time') )
26 sub_tasks = self.
param(
'sub_tasks')
28 self.
warning(
'{0} multiplication jobs have been created'.format(len(sub_tasks)))
def param_required(self, param_name)
Returns the value of the parameter "param_name" or raises an exception if anything wrong happens...
Factory that creates 1 job per digit found in the decimal representation of 'b_multiplier'.
This is the counterpart of GuestProcess.
def warning(self, message, is_error=False)
Store a message in the log_message table with is_error indicating whether the warning is actually an ...
def param(self, param_name, args)
When called as a setter: sets the value of the parameter "param_name".
def dataflow(self, output_ids, branch_name_or_code=1)
Dataflows the output_id(s) on a given branch (default 1).