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

No need to pass $total_workers_to_submit back to beekeeper anymore.

parent ba0f2590
......@@ -75,9 +75,13 @@ sub schedule_workers_resync_if_necessary {
print "Scheduler is going to submit $workers_to_submit_this_group x $this_meadow_type:$this_rc_name workers\n";
}
}
unless(keys %{ $workers_to_submit_by_meadow_type_rc_name->{$this_meadow_type} }) { # if nothing has been scheduled for a meadow,
delete $workers_to_submit_by_meadow_type_rc_name->{$this_meadow_type}; # do not mention the meadow in the hash
}
}
return ($workers_to_submit_by_meadow_type_rc_name, $total_workers_to_submit);
return $workers_to_submit_by_meadow_type_rc_name;
}
......
......@@ -348,10 +348,10 @@ sub run_autonomously {
$queen->print_analysis_status unless($self->{'no_analysis_stats'});
$queen->print_running_worker_counts;
my ($workers_to_submit_by_meadow_type_rc_name, $total_workers_to_submit)
my $workers_to_submit_by_meadow_type_rc_name
= Bio::EnsEMBL::Hive::Scheduler::schedule_workers_resync_if_necessary($queen, $valley, $run_analysis);
if($total_workers_to_submit) {
if( keys %$workers_to_submit_by_meadow_type_rc_name ) {
foreach my $meadow_type (keys %$workers_to_submit_by_meadow_type_rc_name) {
my $this_meadow = $valley->available_meadow_hash->{$meadow_type};
......
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