Skip to content

Commit

Permalink
[backend] Checker: also cache "delayed" state in gbininfo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Mar 6, 2023
1 parent 2db2b96 commit 8103abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/BSSched/Checker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1522,8 +1522,10 @@ sub read_gbininfo {
my ($gbininfo, $ps2) = @{$gbininfo_cache->{"$prp/$arch"} || []};
if ($remoteprojs->{$projid}) {
if (!$gbininfo || !$ps2) {
return $gbininfo if defined($gbininfo) && !$gbininfo; # in progress
$ps2 = $ps ? {} : undef;
$gbininfo = BSSched::Remote::read_gbininfo_remote($ctx, "$prp/$arch", $remoteprojs->{$projid}, $ps2);
$gbininfo_cache->{"$prp/$arch"} = [ $gbininfo ] if defined($gbininfo) && !$gbininfo; # cache "in progress"
$gbininfo_cache->{"$prp/$arch"} = [ $gbininfo, $ps2 ] if $gbininfo && $ps2;
}
if ($gbininfo && $ps) {
Expand Down

0 comments on commit 8103abe

Please sign in to comment.