Commit 2135eabb authored by Peter van 't Hof's avatar Peter van 't Hof

Faster start of multi threaded subpages

parent 9e3b5000
......@@ -131,6 +131,11 @@ trait ReportBuilder extends ToolCommand {
"rootPath" -> rootPath
)
// Generating subpages
val jobs = for ((name, subPage) <- page.subPages.par) yield {
generatePage(summary, subPage, outputDir, path ::: name :: Nil, pageArgs)
}
val output = ReportBuilder.renderTemplate("/nl/lumc/sasc/biopet/core/report/main.ssp",
pageArgs ++ Map("args" -> pageArgs))
......@@ -139,10 +144,6 @@ trait ReportBuilder extends ToolCommand {
writer.println(output)
writer.close()
// Generating subpages
val jobs = for ((name, subPage) <- page.subPages.par) yield {
generatePage(summary, subPage, outputDir, path ::: name :: Nil, pageArgs)
}
done += 1
if (done % 100 == 0) logger.info(done + " Done, " + (done.toDouble / total * 100) + "%")
jobs.fold(0)(_ + _) + 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment