diff options
Diffstat (limited to 'src/buildstream/_cas/cascache.py')
-rw-r--r-- | src/buildstream/_cas/cascache.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py index f7855afc4..b6893503f 100644 --- a/src/buildstream/_cas/cascache.py +++ b/src/buildstream/_cas/cascache.py @@ -1049,6 +1049,17 @@ class CASCache(): return self._cache_usage_monitor.get_cache_usage() + # get_casd_process() + # + # Get the underlying buildbox-casd process + # + # Returns: + # (subprocess.Process): The casd process that is used for the current cascache + # + def get_casd_process(self): + assert self._casd_process is not None, "This should only be called with a running buildbox-casd process" + return self._casd_process + # _CASCacheUsage # |