mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
bitbake: toaster: Update orm.models to catch error ProcessLookupError
- catch error ProcessLookupError and logs it (Bitbake rev: a61a5f47dc56daafa9089adaad388b3c0b59155d) Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d34591ae7b
commit
f8ee2cb52e
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user