From: Ed Bartosh Date: Fri, 16 Sep 2016 16:22:32 +0000 (+0100) Subject: bitbake: runbuilds: process builds on start X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=323b81a08380c9660524b21a65d27c225d02c953;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: runbuilds: process builds on start If Toaster is stopped incorrectly there could be some build requests and builds in incorrect state left from the previous run. Running main processing function on start should take care of those. (Bitbake rev: 6b9f8f6bb51d1aa2ca4effc34e076e331d0cb8d1) Signed-off-by: Ed Bartosh Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py index 61a520c6ce5..7df81dc5d11 100644 --- a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py @@ -175,6 +175,8 @@ class Command(NoArgsCommand): logger.warn("runbuilds: schedule exception %s" % str(e)) def handle_noargs(self, **options): + self.runbuild() + signal.signal(signal.SIGUSR1, lambda sig, frame: None) while True: