Mercurial > piecrust2
changeset 880:342e3ea24b5d
serve: Fix asset processing loop.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 15 Jun 2017 22:55:32 -0700 |
parents | 58ae026b4c31 |
children | b4e10471e970 |
files | piecrust/serving/procloop.py |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/serving/procloop.py Thu Jun 15 22:38:05 2017 -0700 +++ b/piecrust/serving/procloop.py Thu Jun 15 22:55:32 2017 -0700 @@ -7,6 +7,7 @@ import itertools import threading from piecrust import CONFIG_PATH, THEME_CONFIG_PATH +from piecrust.chefutil import format_timed_scope from piecrust.pipelines.base import ( PipelineJobCreateContext, PipelineJobRunContext, PipelineJobResult, PipelineManager) @@ -151,7 +152,11 @@ found_new_or_modified = True break if found_new_or_modified: - self._runPipelines(procinfo.source) + with format_timed_scope( + logger, + "change detected, reprocessed '%s'." % + procinfo.source.name): + self._runPipelines(procinfo.source) time.sleep(self.interval) @@ -250,9 +255,9 @@ except Exception as e: ppres.record_entry.errors.append(str(e)) - if ppres.next_pass_job is not None: + if ppres.next_step_job is not None: logger.error("The processing loop for the server " - "doesn't support multi-pass pipelines.") + "doesn't support multi-step pipelines.") cr.addEntry(ppres.record_entry) if not ppres.record_entry.success: