Force reload of cache meta. This is used by parallel checking workers to update shared information that may have changed after initial graph loading. Currently, this is only the interface hash.
(self)
| 2999 | ) |
| 3000 | |
| 3001 | def reload_meta(self) -> None: |
| 3002 | """Force reload of cache meta. |
| 3003 | |
| 3004 | This is used by parallel checking workers to update shared information |
| 3005 | that may have changed after initial graph loading. Currently, this is only |
| 3006 | the interface hash. |
| 3007 | """ |
| 3008 | assert self.manager.parallel_worker |
| 3009 | assert self.path is not None |
| 3010 | new_meta_pair = find_cache_meta(self.id, self.path, self.manager, skip_validation=True) |
| 3011 | assert new_meta_pair is not None |
| 3012 | new_meta, _ = new_meta_pair |
| 3013 | # Copy relevant information from new meta (which may be incomplete). |
| 3014 | self.interface_hash = new_meta.interface_hash |
| 3015 | |
| 3016 | def add_ancestors(self) -> None: |
| 3017 | if self.path is not None: |
no test coverage detected