diff options
author | Jürg Billeter <j@bitron.ch> | 2019-10-10 11:01:50 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-10-15 09:43:08 +0200 |
commit | 8a5e9c69b12b09a958a395a101c1b5d17f5ece9f (patch) | |
tree | 6bcedc57e1393222486063d4edb72be58b5f5e63 /src | |
parent | 3578f9207f60b62f6ad2a70f0a1e9b60940d0fc1 (diff) | |
download | buildstream-8a5e9c69b12b09a958a395a101c1b5d17f5ece9f.tar.gz |
_basecache.py: Add close_grpc_channels() method
Diffstat (limited to 'src')
-rw-r--r-- | src/buildstream/_basecache.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/buildstream/_basecache.py b/src/buildstream/_basecache.py index df50bfb62..c2772d02c 100644 --- a/src/buildstream/_basecache.py +++ b/src/buildstream/_basecache.py @@ -74,16 +74,23 @@ class BaseCache(): return True return False - # release_resources(): + # close_grpc_channels(): # - # Release resources used by BaseCache. + # Close open gRPC channels. # - def release_resources(self): + def close_grpc_channels(self): # Close all remotes and their gRPC channels for project_remotes in chain(self._index_remotes.values(), self._storage_remotes.values()): for remote in project_remotes: remote.close() + # release_resources(): + # + # Release resources used by BaseCache. + # + def release_resources(self): + self.close_grpc_channels() + # specs_from_config_node() # # Parses the configuration of remote artifact caches from a config block. |