diff options
author | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-24 16:47:33 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-06-24 16:47:33 +0000 |
commit | 722d456799221ab57742b6e199a79d8476c0af98 (patch) | |
tree | 9797c6957818d98934e49e801348684280e6d3f4 /src/buildstream/_pipeline.py | |
parent | 5c8642b4c86fed13b0b29aaa01e21871d3a89a31 (diff) | |
parent | 14efa5c06ee380fa524091b8e6eb18b3713c332f (diff) | |
download | buildstream-722d456799221ab57742b6e199a79d8476c0af98.tar.gz |
Merge branch 'jennis/notify_reverse_deps' into 'master'
Notify direct reverse dependencies when an Element becomes ready for runtime and cached
See merge request BuildStream/buildstream!1406
Diffstat (limited to 'src/buildstream/_pipeline.py')
-rw-r--r-- | src/buildstream/_pipeline.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildstream/_pipeline.py b/src/buildstream/_pipeline.py index d44813348..e6ae94cfd 100644 --- a/src/buildstream/_pipeline.py +++ b/src/buildstream/_pipeline.py @@ -138,6 +138,11 @@ class Pipeline(): # Determine initial element state. element._update_state() + # We may already have Elements which are cached and have their runtimes + # cached, if this is the case, we should immediately notify their reverse + # dependencies. + element._update_ready_for_runtime_and_cached() + # dependencies() # # Generator function to iterate over elements and optionally |