src/Pure/Admin/isabelle_cronjob.scala
changeset 71684 5036edb025b7
parent 71632 c1bc38327bc2
child 71726 a5fda30edae2
equal deleted inserted replaced
71683:fd487d261169 71684:5036edb025b7
   512       {
   512       {
   513         @tailrec def join(running: List[Task])
   513         @tailrec def join(running: List[Task])
   514         {
   514         {
   515           running.partition(_.is_finished) match {
   515           running.partition(_.is_finished) match {
   516             case (Nil, Nil) =>
   516             case (Nil, Nil) =>
   517             case (Nil, _ :: _) => Thread.sleep(500); join(running)
   517             case (Nil, _ :: _) => Time.seconds(0.5).sleep; join(running)
   518             case (_ :: _, remaining) => join(remaining)
   518             case (_ :: _, remaining) => join(remaining)
   519           }
   519           }
   520         }
   520         }
   521         val start_date = Date.now()
   521         val start_date = Date.now()
   522         val running =
   522         val running =