aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-16 15:41:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-21 15:30:07 +0100
commite26e61e84575669bd223f6ab316798097ed95ec8 (patch)
treed947c8990ab8c0ffff1ebabb3a1f4fb40d284c10 /lib/bb/runqueue.py
parentfdf5c341f3393173876a753c46c9bd067eb2b353 (diff)
downloadbitbake-e26e61e84575669bd223f6ab316798097ed95ec8.tar.gz
runqueue: Small but critical fix
We've observed do_package and do_package_setscene running in parallel. The reason is that holdoff_tasks wasn't getting updated. Looking at the code, it would seem the reason is that the task was in pending_migrations and hence changed wasn't set and holdoff_tasks wasn't updated. Fix this. It only affects builds with rehashing enabled. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 7fa074f67..88212ca00 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2283,6 +2283,7 @@ class RunQueueExecute:
continue
self.pending_migrations.remove(tid)
+ changed = True
if tid in self.tasks_scenequeue_done:
self.tasks_scenequeue_done.remove(tid)