summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-10-25 20:51:14 +0100
committerAlassane Yattara <alassane.yattara@savoirfairelinux.com>2023-11-09 18:34:27 +0100
commit7446d27bf1574a6d9b1c233a1cc4cdcbe9ebe552 (patch)
tree950eb230088fda7017e416f61db6e387a0a09f34
parent227478b5aaee0f16945035c126ac18174340bba3 (diff)
downloadbitbake-contrib-7446d27bf1574a6d9b1c233a1cc4cdcbe9ebe552.tar.gz
Toaster: Update orm.models to catch error ProcessLookupError
- catch error ProcessLookupError and logs it Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
-rw-r--r--lib/toaster/orm/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/toaster/orm/models.py b/lib/toaster/orm/models.py
index 0d503a514..1098ad3fd 100644
--- a/lib/toaster/orm/models.py
+++ b/lib/toaster/orm/models.py
@@ -1389,9 +1389,6 @@ class Machine(models.Model):
return "Machine " + self.name + "(" + self.description + ")"
-
-
-
class BitbakeVersion(models.Model):
name = models.CharField(max_length=32, unique = True)
@@ -1853,6 +1850,8 @@ def signal_runbuilds():
os.kill(int(pidf.read()), SIGUSR1)
except FileNotFoundError:
logger.info("Stopping existing runbuilds: no current process found")
+ except ProcessLookupError:
+ logger.warning("Stopping existing runbuilds: process lookup not found")
class Distro(models.Model):
search_allowed_fields = ["name", "description", "layer_version__layer__name"]