synology_apm_repo.sdk.catalog.workload_config module¶
Shared db/workload_config required-column list — both
catalog/workload.py (workloads()/workload_by_id(), reading
every column) and catalog/connection.py (_namespace_by_workload(),
reading only workload_id/workload_spec off the same rows) declare
this same required set, so a schema-drift-driven change to one can’t
silently drift out of sync with the other. One shared module here rather
than either file importing the other’s constant directly, which would
create a two-way dependency between them: the intended shape is the
one-way dependency chain connection.py <- workload.py <- version.py,
and this module is a leaf both connection.py and workload.py depend on
instead.