Mercurial > piecrust2
comparison 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 |
comparison
equal
deleted
inserted
replaced
216:c5ada46b281a | 217:1f4c3dae1fe8 |
---|---|
18 key += taxonomy_term | 18 key += taxonomy_term |
19 return key | 19 return key |
20 | 20 |
21 | 21 |
22 class BakeRecord(Record): | 22 class BakeRecord(Record): |
23 RECORD_VERSION = 8 | 23 RECORD_VERSION = 9 |
24 | 24 |
25 def __init__(self): | 25 def __init__(self): |
26 super(BakeRecord, self).__init__() | 26 super(BakeRecord, self).__init__() |
27 self.out_dir = None | 27 self.out_dir = None |
28 self.bake_time = None | 28 self.bake_time = None |
29 self.success = True | |
29 | 30 |
30 | 31 |
31 FLAG_NONE = 0 | 32 FLAG_NONE = 0 |
32 FLAG_SOURCE_MODIFIED = 2**0 | 33 FLAG_SOURCE_MODIFIED = 2**0 |
33 FLAG_OVERRIDEN = 2**1 | 34 FLAG_OVERRIDEN = 2**1 |