Skip to content

Commit

Permalink
In standaloneJob mode there is no need to query all meadows
Browse files Browse the repository at this point in the history
All we need is the LOCAL one
  • Loading branch information
muffato authored and ens-bwalts committed Jul 1, 2020
1 parent 28d5899 commit 3d7daeb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/Bio/EnsEMBL/Hive/Scripts/StandaloneJob.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ use warnings;
use Bio::EnsEMBL::Hive::AnalysisJob;
use Bio::EnsEMBL::Hive::GuestProcess;
use Bio::EnsEMBL::Hive::HivePipeline;
use Bio::EnsEMBL::Hive::Meadow::LOCAL;
use Bio::EnsEMBL::Hive::Queen;
use Bio::EnsEMBL::Hive::Utils ('load_file_or_module', 'destringify');
use Bio::EnsEMBL::Hive::Utils::PCL;
use Bio::EnsEMBL::Hive::Valley;


sub standaloneJob {
my ($module_or_file, $input_id, $flags, $flow_into, $language) = @_;

# Tell the Valley not to bother about the other meadows.
$Bio::EnsEMBL::Hive::Valley::_loaded_meadow_drivers = ['Bio::EnsEMBL::Hive::Meadow::LOCAL'],

my $worker = Bio::EnsEMBL::Hive::Queen->create_new_worker(

# Worker control parameters:
Expand Down

0 comments on commit 3d7daeb

Please sign in to comment.