From d348a64e43d42bdba636f324dc007c4f0a00cc37 Mon Sep 17 00:00:00 2001 From: Albert Vilella <avilella@ebi.ac.uk> Date: Fri, 3 Apr 2009 09:18:32 +0000 Subject: [PATCH] adding maximise_concurrency and quick HIGHMEM option passing --- scripts/runWorker.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/runWorker.pl b/scripts/runWorker.pl index d96b74f36..c7c737ecc 100755 --- a/scripts/runWorker.pl +++ b/scripts/runWorker.pl @@ -50,6 +50,8 @@ GetOptions('help' => \$help, 'batchsize=i' => \$self->{'batch_size'}, 'limit=i' => \$self->{'job_limit'}, 'lifespan=i' => \$self->{'lifespan'}, + 'maximise_concurrency=i' => \$self->{'maximise_concurrency'}, + 'highmem=i' => \$self->{'highmem'}, 'outdir=s' => \$self->{'outdir'}, 'bk=s' => \$self->{'beekeeper'}, 'pid=s' => \$self->{'process_id'}, @@ -102,6 +104,8 @@ unless($DBA and $DBA->isa("Bio::EnsEMBL::Hive::DBSQL::DBAdaptor")) { } my $queen = $DBA->get_Queen(); +$queen->{maximise_concurrency} = 1 if ($self->{maximise_concurrency}); +$queen->{highmem} = $self->{highmem} if ($self->{highmem}); ################################ # LSF submit system dependency @@ -130,7 +134,6 @@ if($self->{'logic_name'}) { } $self->{'analysis_id'} = $analysis->dbID; } - if($self->{'analysis_id'} and $self->{'input_id'}) { $self->{'analysis_job'} = new Bio::EnsEMBL::Hive::AnalysisJob; $self->{'analysis_job'}->input_id($self->{'input_id'}); @@ -161,6 +164,7 @@ unless($worker) { exit(0); } +$worker->{HIGHMEM} = $self->{highmem} if($self->{highmem}); $worker->debug($self->{'debug'}) if($self->{'debug'}); if(defined($self->{'outdir'})) { $worker->output_dir($self->{'outdir'}); } -- GitLab