diff options
author | bst-marge-bot <marge-bot@buildstream.build> | 2019-08-13 09:19:45 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-08-13 09:19:45 +0000 |
commit | 64748b53276404155781b9b07080db933b8daaee (patch) | |
tree | 2d1c90bb076d1a1e5a0f1dc8060f7c4378e663e3 /src/buildstream | |
parent | 05d673ff2881e0f8a177622489ead9c9158d6032 (diff) | |
parent | 4b0b68cdff0326d2a9b3c59ad3df6f4c05218786 (diff) | |
download | buildstream-64748b53276404155781b9b07080db933b8daaee.tar.gz |
Merge branch 'jennis/fix_failed_workspaces' into 'master'
Don't reset a failed (but cached) workspaced Element
Closes #1096
See merge request BuildStream/buildstream!1536
Diffstat (limited to 'src/buildstream')
-rw-r--r-- | src/buildstream/element.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 240e8ce7d..bc8cde311 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1199,7 +1199,7 @@ class Element(Plugin): # marked stable either when we verify that the workspace is already # cached, or when we build/pull the workspaced element. if self.__cache_keys_unstable: - if not self._cached_success(): + if not self._cached(): self.__reset_cache_data() if not self.__assemble_scheduled: self._schedule_assemble() @@ -1215,7 +1215,7 @@ class Element(Plugin): if (not self.__assemble_scheduled and not self.__assemble_done and self.__artifact and self._is_required() and - not self._cached_success() and + not self._cached() and not self._pull_pending()): self._schedule_assemble() @@ -3163,7 +3163,7 @@ class Element(Plugin): # def __update_cache_keys_stability(self): if self.__cache_keys_unstable: - if self._cached_success(): + if self._cached(): self.__cache_keys_unstable = False elif not self.__assemble_scheduled and self.__assemble_done: self.__cache_keys_unstable = False |