src/Pure/Build/build_schedule.scala
changeset 79829 a9da5e99e22f
parent 79828 5969ead9f900
child 79832 2a3c0a68221c
--- a/src/Pure/Build/build_schedule.scala	Sat Mar 09 14:52:28 2024 +0100
+++ b/src/Pure/Build/build_schedule.scala	Sat Mar 09 15:14:22 2024 +0100
@@ -1329,12 +1329,10 @@
       val timing_data = Timing_Data.load(host_infos, log_database)
 
       val sessions = Build_Process.Sessions.empty.init(build_context, database_server, progress)
-      def task(session: Build_Job.Session_Context): Build_Process.Task =
-        Build_Process.Task(session.name, session.deps, build_context.build_uuid)
 
       val build_state =
         Build_Process.State(sessions = sessions,
-          pending = sessions.iterator.map(session => (session.name -> task(session))).toMap)
+          pending = Map.from(sessions.iterator.map(Build_Process.Task.entry(_, build_context))))
 
       val scheduler = Build_Engine.scheduler(timing_data, build_context)
       def schedule_msg(res: Exn.Result[Schedule]): String =