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());
unless(@$log_buffer){
push@$log_buffer,"Could not find any suitable analyses to start scheduling.";
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());
push@log_buffer,"Available capacity of '$this_meadow_type' Meadow (=".$meadow_capacity_limiter_hashed_by_type->{$this_meadow_type}->original_capacity.") has been reached, skipping Analysis '$logic_name'.";
push@$log_buffer,"Available capacity of '$this_meadow_type' Meadow (=".$meadow_capacity_limiter_hashed_by_type->{$this_meadow_type}->original_capacity.") has been reached, skipping Analysis '$logic_name'.";
next;
}
#digging deeper under the surface so need to sync:
push@log_buffer,sprintf("Before checking the Valley for pending jobs, the Scheduler allocated $extra_workers_this_analysis x $this_meadow_type:$this_rc_name extra workers for '%s' [%.4f hive_load remaining]",
push@$log_buffer,sprintf("Before checking the Valley for pending jobs, the Scheduler allocated $extra_workers_this_analysis x $this_meadow_type:$this_rc_name extra workers for '%s' [%.4f hive_load remaining]",
$logic_name,
$queen_capacity_limiter->available_capacity,
);
}
}# /foreach my $analysis_stats (@stats_sorted_by_suitability)
}else{
push@log_buffer,"Could not find any suitable analyses to start scheduling.";
}# /foreach my $analysis_stats (@$stats_sorted_by_suitability)