Commit 0c51d75e authored by Leigh Stoller's avatar Leigh Stoller

Skip getting prediction info from aggregates that are not "up", to avoid

waiting for the timeout. The delay on the instantiate page is bad enough
as it is. Needs more work.
parent 7a355473
#!/usr/bin/perl -w
#
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
# Copyright (c) 2000-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -902,8 +902,13 @@ sub DoPrediction()
my @list = APT_Aggregate->LookupForPortal($portal);
foreach my $agg (@list) {
if ($agg->disabled()) {
print STDERR "The " . $aggregate->name() . " cluster ".
"is currently offline, please try again later.";
print STDERR "The " . $agg->name() . " cluster ".
"is currently disabled, please try again later.\n";
next;
}
if (!$agg->IsUp()) {
print STDERR "The " . $agg->name() . " cluster ".
"is currently offline, please try again later.\n";
next;
}
my $authority = APT_Geni::GetAuthority($agg->urn());
......
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