diff mbox series

[09/11] runqueue: wait for covered tasks before setscene

Message ID 20260827200603.688796-10-chris.laplante@agilent.com
State New
Headers show
Series runqueue correctness fixes, optimizations, and cleanups | expand

Commit Message

chris.laplante@agilent.com Aug. 27, 2026, 8:06 p.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

The existing continue only affected the inner loop, allowing setscene
execution while covered tasks were still running. Check the collection
directly so candidate selection waits as intended.

AI-Generated: GPT-5.6 Sol

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
 lib/bb/runqueue.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 826801855..7de6c8636 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2252,9 +2252,8 @@  class RunQueueExecute:
                             return True
                         continue
                     # If covered tasks are running, need to wait for them to complete
-                    for t in self.sqdata.sq_covered_tasks[nexttask]:
-                        if t in self.runq_running and t not in self.runq_complete:
-                            continue
+                    if any(t in self.runq_running and t not in self.runq_complete for t in self.sqdata.sq_covered_tasks[nexttask]):
+                        continue
                     if nexttask in self.sq_deferred:
                         # Deferred tasks that were still deferred were skipped above so we now need to process
                         logger.debug("Task %s no longer deferred" % nexttask)