summaryrefslogtreecommitdiffstats
path: root/bitbake/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:51:25 +0000
commit86ec266d912b574c2e2f2057c9c438b13c5c5f98 (patch)
tree80081147a8547c9496b45fd562754e3114878e60 /bitbake/lib/bb/event.py
parentab55f8bfec37dac8750c5d55b585332fc3f9b135 (diff)
downloadpoky-86ec266d912b574c2e2f2057c9c438b13c5c5f98.tar.gz
bitbake: 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. (Bitbake rev: ef8c980a3ae92c168b7ca16a4d19cd38a9574761) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
-rw-r--r--bitbake/lib/bb/event.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 31e7c2a4d2..0454c75332 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -670,6 +670,17 @@ class ReachableStamps(Event):
670 Event.__init__(self) 670 Event.__init__(self)
671 self.stamps = stamps 671 self.stamps = stamps
672 672
673class StaleSetSceneTasks(Event):
674 """
675 An event listing setscene tasks which are 'stale' and will
676 be rerun. The metadata may use to clean up stale data.
677 tasks is a mapping of tasks and matching stale stamps.
678 """
679
680 def __init__(self, tasks):
681 Event.__init__(self)
682 self.tasks = tasks
683
673class FilesMatchingFound(Event): 684class FilesMatchingFound(Event):
674 """ 685 """
675 Event when a list of files matching the supplied pattern has 686 Event when a list of files matching the supplied pattern has