Commit 8ddb8cf4 authored by Leo Gordon's avatar Leo Gordon
Browse files

cosmetic: changed the order of $runnalbe_object and $job initialization

parent 04a22618
......@@ -43,6 +43,10 @@ if($reg_conf) {
}
my $runnable_object = $runnable_module->new();
$runnable_object->debug($debug) if($debug);
$runnable_object->execute_writes(not $no_write);
my $job = Bio::EnsEMBL::Hive::AnalysisJob->new( -dbID => -1 );
unless($input_id) {
my ($param_hash, $param_list) = parse_cmdline_options();
......@@ -79,17 +83,11 @@ foreach my $branch_code (keys %$flow_into) {
$job->dataflow_rules( $branch_code, \@dataflow_rules );
}
$runnable_object->input_job($job);
if($debug) {
$runnable_object->debug($debug);
}
$runnable_object->execute_writes( not $no_write );
$runnable_object->input_job($job);
$runnable_object->life_cycle();
unless($no_cleanup) {
$runnable_object->cleanup_worker_temp_directory();
}
$runnable_object->cleanup_worker_temp_directory() unless($no_cleanup);
__DATA__
......
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