# the pre-pending-adjusted outcome will be stored here:
my%workers_to_submit_by_meadow_type_rc_name=();
my$total_extra_workers_required=0;
my$log_buffer='';
my@log_buffer=();
my$submit_capacity_limiter=Bio::EnsEMBL::Hive::Limiter->new('Max number of Workers scheduled this time',$submit_capacity);
my$queen_capacity_limiter=Bio::EnsEMBL::Hive::Limiter->new('Total reciprocal capacity of the Hive',1.0-$queen->db->get_RoleAdaptor->get_hive_current_load());
$log_buffer.=sprintf("Before checking the Valley for pending jobs, Scheduler allocated $extra_workers_this_analysis x $this_meadow_type:$this_rc_name extra workers for '%s' [%.4f hive_load remaining]\n",
$analysis->logic_name,
$queen_capacity_limiter->available_capacity,
);
push@log_buffer,$analysis_stats->toString;
push@log_buffer,sprintf("Before checking the Valley for pending jobs, Scheduler allocated $extra_workers_this_analysis x $this_meadow_type:$this_rc_name extra workers for '%s' [%.4f hive_load remaining]\n",
$analysis->logic_name,
$queen_capacity_limiter->available_capacity,
);
}else{
return$analysis_stats;# FIXME: returns data in different format in "suggest analysis" mode