Mercurial > piecrust2
diff piecrust/processing/worker.py @ 691:9ae9390192da
bake: Use standard pickle and queue for now to fix some small issues.
* JSON leads to some problems with integers as keys.
* Add some stats to the baking process.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 21 Mar 2016 22:28:57 -0700 |
parents | 61d606fbc313 |
children |
line wrap: on
line diff
--- a/piecrust/processing/worker.py Mon Mar 21 19:16:54 2016 -0700 +++ b/piecrust/processing/worker.py Mon Mar 21 22:28:57 2016 -0700 @@ -135,7 +135,7 @@ return result - def getReport(self): + def getReport(self, pool_reports): # Invoke post-processors. pipeline_ctx = PipelineContext(self.wid, self.app, self.ctx.out_dir, self.ctx.tmp_dir, self.ctx.force) @@ -145,6 +145,7 @@ self.app.env.stepTimerSince("PipelineWorker_%d_Total" % self.wid, self.work_start_time) data = self.app.env.getStats() + data.timers.update(pool_reports) return { 'type': 'stats', 'data': data}