Commit 24fdc833 authored by Leo Gordon's avatar Leo Gordon
Browse files

moved specializaton call into W::run, so that death messages during...

moved specializaton call into W::run, so that death messages during specialization could be recorded in W->log_dir
parent 29bc906f
......@@ -500,15 +500,18 @@ sub cleanup_worker_process_temp_directory {
=cut
sub run {
my $self = shift;
my $self = shift;
my @spec_args = @_;
$self->print_worker();
if( my $worker_log_dir = $self->log_dir ) {
$self->get_stdout_redirector->push( $worker_log_dir.'/worker.out' );
$self->get_stderr_redirector->push( $worker_log_dir.'/worker.err' );
$self->print_worker();
}
$self->adaptor->specialize_new_worker( $self, @spec_args );
$self->print_worker();
if( $self->compile_module_once() ) {
$self->enter_status('COMPILATION');
my $runnable_object = $self->analysis->process or die "Unknown compilation error";
......
......@@ -116,19 +116,17 @@ eval {
# Other parameters:
-debug => $debug,
);
};
my $msg_thrown = $@;
$queen->specialize_new_worker( $worker,
if($worker) {
$worker->run(
-analysis_id => $analysis_id,
-logic_name => $logic_name,
-job_id => $job_id,
-force => $force,
);
};
my $msg_thrown = $@;
if($worker) {
$worker->run();
} else {
......
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