comparison piecrust/pipelines/_procrecords.py @ 989:8adc27285d93

bake: Big pass on bake performance. - Reduce the amount of data passed between processes. - Make inter-process data simple objects to make it easier to test with alternatives to pickle. - Make sources have the basic requirement to be able to find a content item from an item spec (path). - Make Hoedown the default Markdown formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:17 -0800
parents 448710d84121
children
comparison
equal deleted inserted replaced
988:f83ae0a5d793 989:8adc27285d93
41 41
42 def getAllOutputPaths(self): 42 def getAllOutputPaths(self):
43 return self.out_paths 43 return self.out_paths
44 44
45 45
46 def add_asset_job_result(result):
47 result.update({
48 'item_spec': None,
49 'flags': AssetPipelineRecordEntry.FLAG_NONE,
50 'proc_tree': None,
51 'out_paths': [],
52 })
53
54
55 def merge_job_result_into_record_entry(record_entry, result):
56 record_entry.item_spec = result['item_spec']
57 record_entry.flags |= result['flags']
58 record_entry.proc_tree = result['proc_tree']
59 record_entry.out_paths = result['out_paths']
60
61
46 flag_descriptions = { 62 flag_descriptions = {
47 AssetPipelineRecordEntry.FLAG_PREPARED: 'prepared', 63 AssetPipelineRecordEntry.FLAG_PREPARED: 'prepared',
48 AssetPipelineRecordEntry.FLAG_PROCESSED: 'processed', 64 AssetPipelineRecordEntry.FLAG_PROCESSED: 'processed',
49 AssetPipelineRecordEntry.FLAG_BYPASSED_STRUCTURED_PROCESSING: 'external', 65 AssetPipelineRecordEntry.FLAG_BYPASSED_STRUCTURED_PROCESSING: 'external',
50 AssetPipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run'} 66 AssetPipelineRecordEntry.FLAG_COLLAPSED_FROM_LAST_RUN: 'from last run'}