summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/command.py2
-rw-r--r--bitbake/lib/bb/runqueue.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 84fcdf9433..d797fcf930 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -86,7 +86,7 @@ class Command:
86 86
87 def runAsyncCommand(self): 87 def runAsyncCommand(self):
88 try: 88 try:
89 if self.cooker.state == bb.cooker.state.error: 89 if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown):
90 return False 90 return False
91 if self.currentAsyncCommand is not None: 91 if self.currentAsyncCommand is not None:
92 (command, options) = self.currentAsyncCommand 92 (command, options) = self.currentAsyncCommand
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 4ea4970127..f68a11d90d 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1065,7 +1065,7 @@ class RunQueue:
1065 if self.state is runQueueCleanUp: 1065 if self.state is runQueueCleanUp:
1066 self.rqexe.finish() 1066 self.rqexe.finish()
1067 1067
1068 if self.state is runQueueComplete or self.state is runQueueFailed: 1068 if (self.state is runQueueComplete or self.state is runQueueFailed) and self.rqexe:
1069 self.teardown_workers() 1069 self.teardown_workers()
1070 if self.rqexe.stats.failed: 1070 if self.rqexe.stats.failed:
1071 logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed.", self.rqexe.stats.completed + self.rqexe.stats.failed, self.rqexe.stats.skipped, self.rqexe.stats.failed) 1071 logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and %d failed.", self.rqexe.stats.completed + self.rqexe.stats.failed, self.rqexe.stats.skipped, self.rqexe.stats.failed)
@@ -1106,6 +1106,7 @@ class RunQueue:
1106 1106
1107 def finish_runqueue(self, now = False): 1107 def finish_runqueue(self, now = False):
1108 if not self.rqexe: 1108 if not self.rqexe:
1109 self.state = runQueueComplete
1109 return 1110 return
1110 1111
1111 if now: 1112 if now: