# HG changeset patch # User Ludovic Chabant # Date 1437350498 25200 # Node ID 27e3b3f056488c788d0fe6c893edfd77bf1d41e5 # Parent c5df200354e837c2c5550100a2c0f5b0ad56855f bake: Set the worker ID in the configuration. It's useful. diff -r c5df200354e8 -r 27e3b3f05648 piecrust/baking/worker.py --- a/piecrust/baking/worker.py Sun Jul 19 17:00:57 2015 -0700 +++ b/piecrust/baking/worker.py Sun Jul 19 17:01:38 2015 -0700 @@ -42,6 +42,7 @@ app = PieCrust(self.ctx.root_dir, debug=self.ctx.debug) app._useSubCacheDir(self.ctx.sub_cache_dir) app.config.set('baker/is_baking', True) + app.config.set('baker/worker_id', self.wid) app.env.base_asset_url_format = '%uri%' app.env.fs_cache_only_for_main_page = True app.env.registerTimer("BakeWorker_%d_Total" % self.wid)