Commit b57d7d04 authored by Leo Gordon's avatar Leo Gordon
Browse files

avoid having beekeeper run in submitted-to-the-farm state - detect it, report and quit

parent e31f86dd
......@@ -160,6 +160,13 @@ sub main {
$default_meadow_type = 'LOCAL' if($local);
my $valley = Bio::EnsEMBL::Hive::Valley->new( $config, $default_meadow_type, $pipeline_name );
my ($beekeeper_meadow_type, $beekeeper_meadow_name) = $valley->whereami();
unless($beekeeper_meadow_type eq 'LOCAL') {
die "beekeeper.pl detected it has been itself submitted to '$beekeeper_meadow_type/$beekeeper_meadow_name', but this mode of operation is not supported.\n"
."Please just run beekeeper.pl on a farm head node, preferably from under a 'screen' session.\n";
}
$valley->config_set('SubmitWorkersMax', $submit_workers_max) if(defined $submit_workers_max);
my $default_meadow = $valley->get_default_meadow();
......
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