summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildstream/element.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index d076e8799..396a72fb2 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -1175,6 +1175,10 @@ class Element(Plugin):
# Tracking may still be pending
return
+ if self._get_workspace() and self.__assemble_scheduled:
+ self.__reset_cache_data()
+ return
+
self.__update_cache_keys()
self.__update_artifact_state()