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

only print the worker once per output stream (so twice if redirected)

parent bc3cc5ef
......@@ -490,6 +490,7 @@ sub batch_size {
sub run {
my $self = shift;
$self->print_worker();
if( my $worker_output_dir = $self->worker_output_dir ) {
open OLDOUT, ">&STDOUT";
open OLDERR, ">&STDERR";
......@@ -499,8 +500,8 @@ sub run {
close STDERR;
open STDOUT, ">&WORKER_STDOUT";
open STDERR, ">&WORKER_STDERR";
$self->print_worker();
}
$self->print_worker();
$self->db->dbc->disconnect_when_inactive(0);
......
......@@ -137,7 +137,6 @@ unless($worker) {
}
}
$worker->print_worker();
$worker->run();
if($show_analysis_stats) {
......
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