Capture sigterm and mark the compose as DOOMED
Merges: https://pagure.io/pungi/pull-request/946 Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
057751381a
commit
ab2faa85b3
2 changed files with 19 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ class Compose(kobo.log.LoggingBase):
|
|||
f, indent=4)
|
||||
|
||||
def write_status(self, stat_msg):
|
||||
if stat_msg not in ("STARTED", "FINISHED", "DOOMED"):
|
||||
if stat_msg not in ("STARTED", "FINISHED", "DOOMED", "TERMINATED"):
|
||||
self.log_warning("Writing nonstandard compose status: %s" % stat_msg)
|
||||
old_status = self.get_status()
|
||||
if stat_msg == old_status:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue