Commit c39c83ec authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

bugfix: $self->hive_pipeline is not defined for standalone jobs

parent 588aab07
......@@ -888,8 +888,11 @@ sub set_log_directory_name {
sub temp_directory_name {
my $self = shift @_;
my $worker_id = $self->adaptor ? $self->dbID : 'standalone.'.$self->process_id;
return sprintf('/tmp/worker_%s_%s.%s', $self->meadow_user, $self->hive_pipeline->hive_pipeline_name, $worker_id);
if ($self->adaptor) {
return sprintf('/tmp/worker_%s_%s.%s', $self->meadow_user, $self->hive_pipeline->hive_pipeline_name, $self->dbID);
} else {
return sprintf('/tmp/worker_%s.standalone.%s', $self->meadow_user, $self->process_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