diff mbox series

runqueue: Make the "Initialising tasks" progress bar finish properly

Message ID 20250927055339.2472285-1-pkj@axis.com
State New
Headers show
Series runqueue: Make the "Initialising tasks" progress bar finish properly | expand

Commit Message

Peter Kjellerstedt Sept. 27, 2025, 5:53 a.m. UTC
The "Initialising tasks" progress bar needs to be finished before
update_scenequeue_data() creates another progress bar.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 bitbake/lib/bb/runqueue.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 63d4edd892..96d70080d3 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -1610,7 +1610,6 @@  class RunQueue:
 
         if self.state == RunQueueState.SCENE_INIT:
             self.start_worker(self.rqexe)
-            self.rqdata.init_progress_reporter.finish()
 
             # If we don't have any setscene functions, skip execution
             if not self.rqdata.runq_setscene_tids:
@@ -1948,6 +1947,10 @@  class RunQueueExecute:
         self.sqdata = SQData()
         build_scenequeue_data(self.sqdata, self.rqdata, self)
 
+        # Finish the "Initialising tasks" progress bar before
+        # update_scenequeue_data() creates another one.
+        self.rqdata.init_progress_reporter.finish()
+
         update_scenequeue_data(self.sqdata.sq_revdeps, self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=True)
 
         # Compute a list of 'stale' sstate tasks where the current hash does not match the one