diff piecrust/baking/records.py @ 217:1f4c3dae1fe8

bake: Better error handling for site baking. The site baker now keeps track of whether any worker saw any error. It returns the current record after a bake. The `bake` command uses this return value to figure out what kind of exit code to return.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 31 Jan 2015 17:35:36 -0800
parents 133845647083
children b034f6f15e22
line wrap: on
line diff
--- a/piecrust/baking/records.py	Sat Jan 31 17:33:02 2015 -0800
+++ b/piecrust/baking/records.py	Sat Jan 31 17:35:36 2015 -0800
@@ -20,12 +20,13 @@
 
 
 class BakeRecord(Record):
-    RECORD_VERSION = 8
+    RECORD_VERSION = 9
 
     def __init__(self):
         super(BakeRecord, self).__init__()
         self.out_dir = None
         self.bake_time = None
+        self.success = True
 
 
 FLAG_NONE = 0