The remote had one commit this branch did not (03f8a85), which adds the
Apache-2.0 LICENSE, the NOTICE and SPDX headers to every .py and .sh
file. The merge was clean - the headers sit at the top of each file and
my changes are further down.
The new files this branch added (languages.py, translations.py, the
cluster package, the new tests and scripts) were written after the
merge base, so the licence commit never saw them. They now carry the
same header, so the convention holds across the whole tree.
Nothing else changed. 883 tests passed / 8 failed - the same 8
pre-existing failures.
37 lines
974 B
Python
37 lines
974 B
Python
# Copyright 2026 Umbra Tools (umbratools.com)
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""UmbraTrans cluster integration for UmbraAudio.
|
|
|
|
Provides PostgreSQL connection, compute node registration, job queue,
|
|
artifact protocol, and NFS shared storage access.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .artifacts import ArtifactStore, read_artifact, write_artifact
|
|
from .config import ClusterConfig, load_cluster_config
|
|
from .database import ClusterDB, get_cluster_db
|
|
from .jobs import JobKind, JobQueue, claim_job, complete_job
|
|
from .nfs import NFSMounts, ensure_nfs_mounts
|
|
from .node import ComputeNode, heartbeat_loop, register_node
|
|
|
|
__all__ = [
|
|
"ClusterConfig",
|
|
"load_cluster_config",
|
|
"ClusterDB",
|
|
"get_cluster_db",
|
|
"ComputeNode",
|
|
"register_node",
|
|
"heartbeat_loop",
|
|
"JobQueue",
|
|
"JobKind",
|
|
"claim_job",
|
|
"complete_job",
|
|
"ArtifactStore",
|
|
"write_artifact",
|
|
"read_artifact",
|
|
"NFSMounts",
|
|
"ensure_nfs_mounts",
|
|
]
|