summaryrefslogtreecommitdiffstats
path: root/bitbake/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:13 +0100
commit3afc48c38f3e5e0b6ff53dead13ee4bbcf4105bc (patch)
treee587dd1f176014eb6eb02b6942671c635766a112 /bitbake/lib/bb/runqueue.py
parente087855d48f47f738b77c99d8b19bb4a9f1d71c0 (diff)
downloadpoky-3afc48c38f3e5e0b6ff53dead13ee4bbcf4105bc.tar.gz
bitbake: 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. (Bitbake rev: e26e61e84575669bd223f6ab316798097ed95ec8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 7fa074f679..88212ca00c 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2283,6 +2283,7 @@ class RunQueueExecute:
2283 continue 2283 continue
2284 2284
2285 self.pending_migrations.remove(tid) 2285 self.pending_migrations.remove(tid)
2286 changed = True
2286 2287
2287 if tid in self.tasks_scenequeue_done: 2288 if tid in self.tasks_scenequeue_done:
2288 self.tasks_scenequeue_done.remove(tid) 2289 self.tasks_scenequeue_done.remove(tid)