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 <[email protected]>
---
 bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py 
b/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py
index 61a520c..7df81dc 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:
-- 
2.1.4

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to