summaryrefslogtreecommitdiffstats
path: root/lib/bb/event.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-18 17:57:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-23 22:50:28 +0000
commitef8c980a3ae92c168b7ca16a4d19cd38a9574761 (patch)
treeb3ac05652b8cfb73aef82886445a477f0db81498 /lib/bb/event.py
parentb126a53882d202e4df0f9661303355c9fe9ec80e (diff)
downloadbitbake-ef8c980a3ae92c168b7ca16a4d19cd38a9574761.tar.gz
runqueue/event: Add an event for notifying of stale setscene tasks
Use the new functionality in build.py to identify stale setscene tasks and send an event to the metadata listing them. The metadata then has the option of performing cleanup operations if it thinks that appropriate. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 31e7c2a4d..0454c7533 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -670,6 +670,17 @@ class ReachableStamps(Event):
Event.__init__(self)
self.stamps = stamps
+class StaleSetSceneTasks(Event):
+ """
+ An event listing setscene tasks which are 'stale' and will
+ be rerun. The metadata may use to clean up stale data.
+ tasks is a mapping of tasks and matching stale stamps.
+ """
+
+ def __init__(self, tasks):
+ Event.__init__(self)
+ self.tasks = tasks
+
class FilesMatchingFound(Event):
"""
Event when a list of files matching the supplied pattern has