Mercurial > piecrust2
diff piecrust/baking/worker.py @ 1015:fa489c5e829e
bake: Load pages in parallel again.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 29 Nov 2017 20:37:57 -0800 |
parents | 071f30aa04bb |
children | bd544b65cfad |
line wrap: on
line diff
--- a/piecrust/baking/worker.py Tue Nov 28 21:28:15 2017 -0800 +++ b/piecrust/baking/worker.py Wed Nov 29 20:37:57 2017 -0800 @@ -80,15 +80,6 @@ source_name, item_spec = job['job_spec'] logger.debug("Received job: %s@%s" % (source_name, item_spec)) - # Check for special jobs. - if source_name == '__special__': - if item_spec == 'populate_template_cache': - for eng in self.app.plugin_loader.getTemplateEngines(): - eng.populateCache() - else: - raise Exception("Unknown special job: %s" % item_spec) - return {} - # Run the job! job_start = time.perf_counter() pp = self.ppmngr.getPipeline(source_name)