Skip to main content

host_key

The process-wide holder for the host cache key.

The pod child installs the key its Compute host handed it, and readers in the same process (the pod control server) fetch it from here. The key is held only in memory: never in os.environ, settings or on disk.

This module sits outside bitfount.compute and bitfount.federated so both can import it without compute importing federated.

Module​

Functions​

current​

def current() ‑> HostCacheKey | None:

Returns this process's host cache key.

Returns The installed key, or None when this process was handed none.

install​

def install(key: HostCacheKey) ‑> None:

Installs key as this process's host cache key.

Arguments

  • key: The key handed to this process by its Compute host.