open_registry#
- stable_pretraining.registry.open_registry(db_path: str | Path | None = None, *, cache_dir: str | Path | None = None, scan: bool = True, scan_ttl_s: float = 2.0) Registry[source]#
Open the registry for querying.
- Parameters:
db_path – Path to the cache DB. Defaults to
{cache_dir}/registry.db.cache_dir – Root where runs are stored (
{cache_dir}/runs/...). Defaults tospt.set(cache_dir=...).scan – Run an incremental scan before returning, so the cache reflects the current filesystem state. Disable when you know the scan was just done.
scan_ttl_s – If another scan happened within this many seconds in the current process, skip.
- Returns:
A read-only
Registry.