Commit fe27e033 authored by Jessica Severin's avatar Jessica Severin
Browse files

added mode where it looks in the meta table for the hive_output

directory if one isn't specified
parent fc3220b9
...@@ -19,7 +19,7 @@ $self->{'db_conf'}->{'-user'} = 'ensro'; ...@@ -19,7 +19,7 @@ $self->{'db_conf'}->{'-user'} = 'ensro';
$self->{'db_conf'}->{'-port'} = 3306; $self->{'db_conf'}->{'-port'} = 3306;
$self->{'analysis_id'} = undef; $self->{'analysis_id'} = undef;
$self->{'outdir'} = "/ecs4/work2/ensembl/jessica/data/hive-output"; $self->{'outdir'} = undef;
my $conf_file; my $conf_file;
my ($help, $host, $user, $pass, $dbname, $port, $adaptor); my ($help, $host, $user, $pass, $dbname, $port, $adaptor);
...@@ -71,6 +71,13 @@ my $worker = $queen->create_new_worker($self->{'analysis_id'}); ...@@ -71,6 +71,13 @@ my $worker = $queen->create_new_worker($self->{'analysis_id'});
die("couldn't create worker for analysis_id ".$self->{'analysis_id'}."\n") unless($worker); die("couldn't create worker for analysis_id ".$self->{'analysis_id'}."\n") unless($worker);
if($self->{'outdir'}) { $worker->output_dir($self->{'outdir'}); } if($self->{'outdir'}) { $worker->output_dir($self->{'outdir'}); }
else {
my $arrRef = $DBA->get_MetaContainer->list_value_by_key( 'hive_output' );
if( @$arrRef ) {
$worker->output_dir($arrRef->[0]);
}
}
if($self->{'job_limit'}) { if($self->{'job_limit'}) {
$worker->job_limit($self->{'job_limit'}); $worker->job_limit($self->{'job_limit'});
$worker->life_span(0); $worker->life_span(0);
......
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