summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-05 11:22:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-08 15:44:47 +0100
commit645aa39512491d17f8fd4239264eabbfcb651b10 (patch)
tree43e8edd49855d5ce5a2aafceb3e3e386dd2bd1ca /bitbake/lib/bb/runqueue.py
parent377a671e07ff8dbd23b68a0693a035e8ad51fdc6 (diff)
downloadpoky-645aa39512491d17f8fd4239264eabbfcb651b10.tar.gz
bitbake: runqueue: Improve deadlock warning messages
Tweak the deadlock breaking messages to be explict about which task is blocked on which other task. The messages currently imply it is "freeing" the blocking task which is confusing. (Bitbake rev: cf7f60b83adaded180f6717cb4681edc1d65b66d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 873f384ec4..8ecf166c00 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2237,10 +2237,12 @@ class RunQueueExecute:
2237 2237
2238 # No more tasks can be run. If we have deferred setscene tasks we should run them. 2238 # No more tasks can be run. If we have deferred setscene tasks we should run them.
2239 if self.sq_deferred: 2239 if self.sq_deferred:
2240 tid = self.sq_deferred.pop(list(self.sq_deferred.keys())[0]) 2240 deferred_tid = list(self.sq_deferred.keys())[0]
2241 logger.warning("Runqeueue deadlocked on deferred tasks, forcing task %s" % tid) 2241 blocking_tid = self.sq_deferred.pop(deferred_tid)
2242 if tid not in self.runq_complete: 2242 logger.warning("Runqeueue deadlocked on deferred tasks, forcing task %s blocked by %s" % (deferred_tid, blocking_tid))
2243 self.sq_task_failoutright(tid) 2243 if blocking_tid not in self.runq_complete:
2244 logger.warning("Failing blocking task %s" % (blocking_tid))
2245 self.sq_task_failoutright(blocking_tid)
2244 return True 2246 return True
2245 2247
2246 if self.failed_tids: 2248 if self.failed_tids: