# HG changeset patch # User Ludovic Chabant # Date 1497592532 25200 # Node ID 342e3ea24b5d2e5b58489212c9bd8214129de6f5 # Parent 58ae026b4c31145f7359c5afaeb3d220a8ea9f4d serve: Fix asset processing loop. diff -r 58ae026b4c31 -r 342e3ea24b5d piecrust/serving/procloop.py --- 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: