If a RunnableDB(Process) needs to create jobs, this allows it to have jobs
...
...
@@ -254,13 +260,9 @@ sub dataflow_output_id {
$output_ids||=[$self->input_id()];# replicate the input_id in the branch_code's output by default
$output_ids=[$output_ids]unless(ref($output_ids)eq'ARRAY');# force previously used single values into an arrayref
$create_job_options||={};# { -block => 1 } or { -semaphore_count => scalar(@fan_job_ids) } or { -semaphored_job_id => $funnel_job_id }
# this tricky code is responsible for correct propagation of semaphores down the dataflow pipes:
my$propagate_semaphore=notexists($create_job_options->{'-semaphored_job_id'});# CONVENTION: if zero is explicitly supplied, it is a request not to propagate
# However if nothing is supplied, semaphored_job_id will be propagated from the parent job: