proper available hosts;
authorFabian Huch <huch@in.tum.de>
Tue, 11 Jun 2024 11:07:48 +0200
changeset 80346 b5b2f651a263
parent 80345 7d4cd57cd955
child 80347 613ac8c77a84
child 80350 96843eb96493
proper available hosts;
src/Pure/Build/build_manager.scala
--- a/src/Pure/Build/build_manager.scala	Tue Jun 11 10:27:35 2024 +0200
+++ b/src/Pure/Build/build_manager.scala	Tue Jun 11 11:07:48 2024 +0200
@@ -206,7 +206,7 @@
 
     def next(build_hosts: List[Build_Cluster.Host]): Option[Task] = {
       val cluster_running = running.values.exists(_.build_cluster)
-      val available = build_hosts.map(_.hostname).toSet - running.values.flatMap(_.hostnames).toSet
+      val available = build_hosts.map(_.hostname).toSet -- running.values.flatMap(_.hostnames).toSet
       val ready =
         for {
           (_, task) <- pending