diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-09-16 17:22:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-20 15:18:51 +0100 |
commit | 6b9f8f6bb51d1aa2ca4effc34e076e331d0cb8d1 (patch) | |
tree | 3b077369218dd2a9af124963bd8bc5a87456a665 | |
parent | 62d598cc5aa01d23f1e9284e9e926bd55b1d1878 (diff) | |
download | bitbake-contrib-6b9f8f6bb51d1aa2ca4effc34e076e331d0cb8d1.tar.gz |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/toaster/bldcontrol/management/commands/runbuilds.py b/lib/toaster/bldcontrol/management/commands/runbuilds.py index 61a520c6c..7df81dc5d 100644 --- a/lib/toaster/bldcontrol/management/commands/runbuilds.py +++ b/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: |