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:
Patrick Uiterwijk 2018-05-11 16:49:01 +02:00 committed by Lubomír Sedlář
parent 057751381a
commit ab2faa85b3
2 changed files with 19 additions and 1 deletions

View file

@ -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: