buildgrid.server.actioncache.caches.action_cache_abc module
- class buildgrid.server.actioncache.caches.action_cache_abc.ActionCacheABC(allow_updates: bool = False, storage: StorageABC | None = None)
Bases:
Instance
,ABC
- SERVICE_NAME: ClassVar[str] = 'build.bazel.remote.execution.v2.ActionCache'
The expected FULL_NAME of the Service which will wrap this instance. This value should be declared on the class of any Instance implementations.
- property allow_updates: bool
- hash_type() int
- start() None
A method called when the grpc service is starting.
This method may be overriden if startup logic is required.
- stop() None
A method called when the grpc service is shutting down.
This method may be overriden if shutdown logic is required.
- set_instance_name(instance_name: str) None
Set the instance name associated with this instance. This method may be overriden if extra referencing is required.
- Parameters:
instance_name (str) – The new instance’s name.
- Raises:
AssertionError – if the instance is already registered.
- abstract get_action_result(action_digest: Digest) ActionResult
- abstract update_action_result(action_digest: Digest, action_result: ActionResult) None