Skip to content

common_dagster.build

build.py — resolution: DGFlow declarations → REAL Dagster objects.

One entry point: build_definitions(FlowA, FlowB, ...) → dagster Definitions. Every resolved object is genuine and inspectable — the layer removes assembly, it never re-implements the framework.

Classes

K8sLauncher

Launches an isolate step’s pod via Pipes. Env contract (values entry): DG_NAMESPACE · DG_IMAGE · DG_RUNTIME_SECRET · DG_SERVICE_ACCOUNT. Pipes inherits NOTHING from helm (audit) — everything explicit here.

__init__

def __init__(**overrides: str) -> None

Fields and properties declared here; inherited members belong to the bases above.

overrides

overrides = overrides

Functions

build_definitions

def build_definitions(*flows: type[DGFlow], store: Any = None, launcher: Callable | None = None, extra: dg.Definitions | None = None) -> dg.Definitions

Every flow’s declarations → one Definitions (the container’s whole surface). store: the IO manager (default DGStore → Postgres); launcher: the isolate-step pod launcher — default None: isolate steps refuse at first execution until one is wired (wire K8sLauncher explicitly, see the guide); extra: raw Dagster Definitions to merge (the escape hatch — raw usage is always legal beside flows).