Commit 04881ae7 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

bugfix: if the meadow is not reachable, there is no limiter for it (and the...

bugfix: if the meadow is not reachable, there is no limiter for it (and the analysis cannot be scheduled)
parent b3398212
......@@ -139,6 +139,9 @@ sub schedule_workers {
my $analysis = $analysis_stats->get_analysis; # FIXME: if it proves too expensive we may need to consider caching
my $this_meadow_type = $analysis->meadow_type || $default_meadow_type;
# This meadow type is not available
next if( $meadow_capacity_limiter_hashed_by_type && !$meadow_capacity_limiter_hashed_by_type->{$this_meadow_type} );
# This meadow type is available but has reached its full capacity
next if( $meadow_capacity_limiter_hashed_by_type && $meadow_capacity_limiter_hashed_by_type->{$this_meadow_type}->reached );
#digging deeper under the surface so need to sync:
......
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