Commit efacc250 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: if re-running a job that creates a semaphored group, we no longer die...

bugfix: if re-running a job that creates a semaphored group, we no longer die (thanks Miguel for reporting)
parent 24019053
......@@ -329,9 +329,7 @@ sub dataflow_output_id {
if($failed_to_create) { # adjust semaphore_count for jobs that failed to create:
$self->adaptor->decrease_semaphore_count_for_jobid( $funnel_job_id, $failed_to_create );
}
} else {
die "Could not create a funnel job";
} else { # assume the whole semaphored group of jobs has been created already
}
} else { # non-semaphored dataflow (but potentially propagating any existing semaphores)
......
......@@ -142,6 +142,7 @@ sub CreateNewJob {
WHERE analysis_id=$analysis_id
});
}
} else { # if we got 0E0, it means "ignored insert collision" (job created previously), so we simply return an undef and deal with it outside
}
return $job_id;
......
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