aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-02 09:51:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-02 09:57:14 +0100
commit38d4f65bf1cbcdd5a2d60dff0e1d2859c34ed62e (patch)
tree822572bda762784dbce1f2badf03a89db2697a6f
parentc29c2370635075949c75937c237602600f4f10dc (diff)
downloadbitbake-38d4f65bf1cbcdd5a2d60dff0e1d2859c34ed62e.tar.gz
runqueue: Add sceneQueueComplete event
Its useful to have an event emitted when all of the sceneQueue tasks have completed since the metadata can hook this for processing. Therefore add such an event. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/runqueue.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index f68a11d90..baaac445b 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1985,6 +1985,10 @@ class RunQueueExecuteScenequeue(RunQueueExecute):
logger.debug(1, 'We can skip tasks %s', sorted(self.rq.scenequeue_covered))
self.rq.state = runQueueRunInit
+
+ completeevent = sceneQueueComplete(self.stats, self.rq)
+ bb.event.fire(completeevent, self.cfgData)
+
return True
def runqueue_process_waitpid(self, task, status):
@@ -2067,6 +2071,14 @@ class sceneQueueTaskFailed(sceneQueueEvent):
sceneQueueEvent.__init__(self, task, stats, rq)
self.exitcode = exitcode
+class sceneQueueComplete(sceneQueueEvent):
+ """
+ Event when all the sceneQueue tasks are complete
+ """
+ def __init__(self, stats, rq):
+ self.stats = stats.copy()
+ bb.event.Event.__init__(self)
+
class runQueueTaskCompleted(runQueueEvent):
"""
Event notifing a task completed