Commit 5a963581 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: min_batch_time moved to prevent infinite loop in -compile_module_once 0 mode

parent c64e2b7e
......@@ -514,10 +514,13 @@ sub run {
$self->get_stderr_redirector->push( $worker_log_dir.'/worker.err' );
}
my $min_batch_time;
eval {
$self->enter_status('SPECIALIZATION');
$self->adaptor->specialize_new_worker( $self, @spec_args );
$self->print_worker();
$min_batch_time = $self->analysis->stats->min_batch_time();
1;
} or do {
my $msg = "Could not specialize worker:\n\t".$@;
......@@ -527,8 +530,6 @@ sub run {
$self->cause_of_death('SEE_MSG') unless($self->cause_of_death()); # some specific causes could have been set prior to die "...";
};
my $min_batch_time;
if(!$self->cause_of_death() and $self->compile_module_once() ) {
eval {
$self->enter_status('COMPILATION');
......@@ -541,7 +542,6 @@ sub run {
$self->runnable_object( $runnable_object );
$self->enter_status('READY');
$min_batch_time = $self->analysis->stats->min_batch_time();
$self->adaptor->db->dbc->disconnect_when_inactive(0);
1;
} or do {
......
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