Skip to content

Commit

Permalink
Merge 85df554 into e20ab17
Browse files Browse the repository at this point in the history
  • Loading branch information
bdoyle0182 authored Feb 13, 2024
2 parents e20ab17 + 85df554 commit bb22e7a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,10 @@ class FPCPoolBalancer(config: WhiskConfig,
val missingHealths =
if (healthsFromEtcd.isEmpty) Set.empty[InvokerHealth]
else
((0 to healthsFromEtcd.maxBy(_.id.toInt).id.toInt).toSet -- healthsFromEtcd.map(_.id.toInt))
((healthsFromEtcd
.minBy(_.id.toInt)
.id
.toInt to healthsFromEtcd.maxBy(_.id.toInt).id.toInt).toSet -- healthsFromEtcd.map(_.id.toInt))
.map(id => new InvokerHealth(InvokerInstanceId(id, Some(id.toString), userMemory = 0 MB), Offline))
(healthsFromEtcd ++ missingHealths) sortBy (_.id.toInt)
}
Expand Down

0 comments on commit bb22e7a

Please sign in to comment.