run_compute
Runs a compute in a container: the pod, registered and with a certificate.
The headless equivalent of the desktop orchestrator. Builds a
Compute from the pod configuration and starts it. The compute registers
with the hub and keeps a TLS certificate, as it does on the desktop, but
runs no patient-data API: a container has never served one.
The pod is the container's reason to exist, so this exits when the pod does.
Nothing in the container restarts the pod; exiting lets the platform restart
the container, the way run_pod did before the compute owned the pod. The
pod main lives here rather than in bitfount.compute because it imports the
pod, which bitfount.compute must not.
Module
Functions
run
def run(path_to_config_yaml: str | PathLike[str] | None = None) ‑> None:Runs a compute from a config file and/or environment variables.
Arguments
path_to_config_yaml: Optional path to the pod config YAML. Passed to the pod child, which loads it itself; a spawned child cannot receive the loaded configuration, whose credentials are not picklable.