Integration libraries and deployment
Dagster integration libraries connect an orchestration plan to data tools, cloud services, and compute systems. The Helm chart provides a Kubernetes release boundary for the Dagster services and the user-code servers that load project definitions.
Library-package ecosystem
An integration library is an optional package that gives Dagster a safe boundary to an outside system. The package keeps provider-specific dependencies and rules at the edge while exposing a Dagster resource, definition, execution choice, or command.
Platform and service libraries
Platform libraries connect Dagster to managed services without placing those services in the core runtime. A project selects only the libraries that match its systems, so provider clients and credentials stay outside the base Dagster install.
| Library group | System role | Examples |
|---|---|---|
| Cloud services | Reach cloud storage, databases, jobs, and identity systems | dagster-aws, dagster-gcp, dagster-azure |
| Data movement | Represent extract and load work in the Dagster plan | dagster-airbyte, dagster-fivetran, dagster-sling, dagster-dlt |
| Data and analytics | Connect models, warehouses, and query engines to Dagster definitions | dagster-dbt, dagster-snowflake, dagster-duckdb, dagster-clickhouse, dagster-mlflow |
| Signals and notifications | Send run state or operational signals to outside tools | dagster-datadog, dagster-prometheus, dagster-slack, dagster-pagerduty |
| Workflow platforms | Start work in another workflow system from a Dagster plan | dagster-airflow, dagster-prefect |
The package boundary also controls version support. Current package metadata and lock files use Python 3.11 through 3.14 for many libraries, while some adapters retain narrower ranges because of their provider. Airflow supports Python 3.11 through 3.14, but its Airflow 2 test group is limited to Python versions below 3.13. Dbt supports separate Core and Fusion installation choices and currently stops below Python 3.14. Snowflake offers targeted SQLAlchemy, pandas, and dbt extras, while Kubernetes tests several client generations below its upper bound.
References: python_modules/…/pyproject.toml• L5-53 python_modules/…/pyproject.toml• L5-43 python_modules/…/pyproject.toml• L5-49 python_modules/…/pyproject.toml• L5-25 python_modules/…/pyproject.toml• L5-61 python_modules/…/pyproject.toml• L5-36 helm/…/pyproject.toml• L5-15 helm/…/uv.lock• L1-13
Data tool and storage libraries
Data tool libraries map an outside project or data model into Dagster’s asset and run model. Storage libraries provide the connection and data-type boundary that the work needs.
The main relationships are:
dagster-dbtmaps dbt resources and dependencies to Dagster assets. Core and Fusion events become materializations, asset checks, or observations, while manifest and compiled-query data can add column schema and lineage.dagster-dltmaps dlt pipeline resources to asset keys, dependencies, storage kinds, partitions, and optional row-count metadata. Partitioned loads use their loaded-row metadata, while other loads query the destination when possible.- BigQuery and Snowflake resources give asset code a managed client. Their I/O managers map asset keys and table slices to warehouse tables, then use type handlers for pandas, Polars, and other supported values.
- BigQuery and Snowflake handlers preserve the asset boundary for partitions, table metadata, empty outputs, and data-frame type conversion. They also keep credentials and provider connection rules at the integration edge.
dagster-snowflakecan expose a dbt project that already runs in Snowflake. Dagster reads its manifest as state, starts remote dbt work, and translates run results back into Dagster events without a local dbt project copy.
Dbt preparation separates local development from deployment. Development can refresh dependencies and the manifest when definitions load. Deployment can package the project with prepared artifacts so the code location starts with the needed state. This keeps dbt project files usable in both environments.
The package also treats dbt Core and dbt Fusion as separate choices because both provide the same dbt import namespace. A project must select one engine for an environment. The generated dbt project template carries the Dagster package, dbt Core, and adapter versions together so the project uses one compatible dependency set.
References: python_modules/…/dbt_cli_event.py• L70-77 python_modules/…/dbt_cli_event.py• L392-443 python_modules/…/test_compat.py• L59-68 python_modules/…/test_compat.py• L171-185 python_modules/…/dlt_event_iterator.py• L35-66 python_modules/…/io_manager.py• L35-44 python_modules/…/resources.py• L19-35 python_modules/…/snowflake_io_manager.py• L26-35 python_modules/…/component.py• L1-25 python_modules/…/component.py• L349-380 python_modules/…/pyproject.toml• L41-53 python_modules/…/pyproject.toml.jinja• L1-28
Compute and execution libraries
Execution libraries change where Dagster work runs while keeping the project’s asset and run meaning stable. They connect a run to a container, Kubernetes, a cloud job, a task queue, or a distributed engine.
| Library group | Execution boundary | Main purpose |
|---|---|---|
| Docker | Container | Isolate a step or launch a whole run in an image |
| Kubernetes | Pod or job | Run work as Kubernetes resources |
| Cloud launchers | ECS task or Azure Container Apps Job | Run work in a managed cloud job |
| Celery | Worker queue | Distribute work across workers |
| Spark | Spark application | Run Spark-based data work |
These boundaries can be combined. Celery-on-Kubernetes adds queue-based distribution to cluster-managed workers. A cloud launcher records the provider run identity and maps provider state back to the Dagster run. Some integrations use Dagster Pipes to carry context, events, logs, and status across a process boundary; see Pipes and external processes.
References: python_modules/…/pyproject.toml• L5-19 python_modules/…/pyproject.toml• L5-49 python_modules/…/pyproject.toml• L5-35 python_modules/…/pyproject.toml• L5-20 python_modules/…/pyproject.toml• L5-30 python_modules/…/pyproject.toml• L5-30 python_modules/…/pyproject.toml• L5-30
Control-plane API libraries
Control-plane libraries give tools a typed way to manage a Dagster deployment and read its operational data. The REST resources package uses a GraphQL contract and generated models, while the dg and Cloud CLI packages turn deployment actions into commands. The resource surface covers assets, asset health and events, partition definitions and status, dynamic partition changes, schedules, sensors, and their tick history.
The API boundary preserves both successful data and known authorization or input errors. Generated values keep remote concepts such as run states, deployment types, asset health, and partition status aligned with the clients that consume them. The dg asset commands expose this data for both people and scripts through paged text or JSON output.
References: python_modules/…/pyproject.toml• L5-35 python_modules/…/asset.py• L62-166 python_modules/…/partition.py• L20-93 python_modules/…/schedule.py• L29-188 python_modules/…/sensor.py• L29-192 python_modules/…/tick.py• L25-167 python_modules/…/enums.py• L1-16 python_modules/…/asset.py• L23-86 python_modules/…/pyproject.toml• L5-33
Integration patterns
Integration packages use a small set of patterns. The pattern shows whether Dagster calls a service, translates an outside project, moves execution, or starts work owned by another system.
Service resource pattern
A service resource gives Dagster code a configured client for an outside API or data system. The project uses the client during a run, while the integration owns connection setup and service-specific calls.
This pattern fits cloud services, databases, notification tools, remote files, and data movement. Optional extras keep provider clients out of projects that do not need them. BigQuery and Snowflake also support managed authentication choices, including environment-backed credentials and provider-specific key or identity flows, without changing the asset code that uses the client.
References: python_modules/…/pyproject.toml• L12-35 python_modules/…/resources.py• L19-35 python_modules/…/resources.py• L70-105 python_modules/…/pyproject.toml• L12-25 python_modules/…/utils.py• L29-42 python_modules/…/utils.py• L98-136 python_modules/…/resources.py• L53-90 python_modules/…/pyproject.toml• L5-24
Project translation pattern
A project translation pattern turns an outside tool’s project description into Dagster definitions. The integration reads the tool’s model and maps it to assets or other loadable definitions, so Dagster can plan and observe the work without changing the tool’s own rules.
Dbt is the clearest example. Its manifest supplies asset identity, dependencies, metadata, partitions, and checks. Its run events supply result state and can include schema or column lineage. The Snowflake dbt project component uses the same manifest-to-asset boundary while keeping both the project and its execution in Snowflake.
Airbyte, DLT, Sling, and Looker use related boundaries for their service or project models. These integrations keep the outside system as the owner of its project semantics while Dagster owns asset identity, scheduling, and observed results.
References: python_modules/…/pyproject.toml• L5-53 python_modules/…/dbt_cli_event.py• L589-637 python_modules/…/dlt_event_iterator.py• L69-115 python_modules/…/pyproject.toml• L5-26 python_modules/…/pyproject.toml• L5-21 python_modules/…/test_asset_decorator.py• L204-244 python_modules/…/pyproject.toml• L5-24 python_modules/…/pyproject.toml• L5-30 python_modules/…/component.py• L644-720
Execution adapter pattern
An execution adapter sends Dagster work to another runtime and brings the result back to the Dagster run. The adapter owns placement and platform state, while Dagster keeps the run plan and asset events.
The same project can therefore choose Docker, Kubernetes, a cloud job, Celery, or Spark based on its operating needs. The choice changes placement and scaling, not the asset dependency model.
References: python_modules/…/pyproject.toml• L5-19 python_modules/…/pyproject.toml• L11-49 python_modules/…/pyproject.toml• L5-35 python_modules/…/pyproject.toml• L5-20 python_modules/…/pyproject.toml• L5-30 python_modules/…/pyproject.toml• L5-30
External orchestration bridge
An external orchestration bridge lets Dagster start work owned by another workflow system while Dagster remains the asset-facing unit of work. The bridge sends context to the external run, waits for its state, and returns the result to Dagster.
Airflow and Prefect show this relationship. Airlift carries Airflow identity into Dagster runs. Prefect can launch a flow or task run, poll until it reaches a final state, report the external run link as asset metadata, and forward Dagster termination to a cancellable flow run. The external system still needs an active worker or work pool.
This diagram shows the common lifecycle from a Dagster asset run to an external result.
flowchart LR
A[Dagster asset run] --> B[Integration resource]
B --> C[External workflow run]
C --> D[External worker]
D --> E[External state and Pipes messages]
E --> F[Dagster materialization or failure]
References: python_modules/…/pyproject.toml• L27-39 python_modules/…/pyproject.toml• L5-30 python_modules/…/pyproject.toml• L5-30 python_modules/…/test_pipes.py• L84-137 python_modules/…/test_pipes.py• L236-273 python_modules/…/test_resource.py• L25-64 python_modules/…/pyproject.toml• L5-30
Package discovery pattern
Package discovery makes an installed integration visible to project tools. A package can expose a command or register a module that Dagster developer tooling finds.
This boundary keeps provider knowledge in the provider package. It also lets the project tool load related component libraries without making every provider a core dependency. Snowflake and dbt register component modules for dg discovery, while Airflow registers its plugin and provider entry points for Airflow.
References: python_modules/…/pyproject.toml• L22-26 python_modules/…/pyproject.toml• L34-39 python_modules/…/pyproject.toml• L27-33 python_modules/…/pyproject.toml• L24-34
Deployment build and state pattern
Deployment tooling separates code-location build output from deployment state. A CI session selects the project and agent, builds a Docker image or Python executable, then submits the built locations to Dagster Cloud.
The generated GitHub workflows share one release shape:
- Check the event and initialize the deployment session.
- Set the target Python version and sync project dependencies.
- Refresh state-backed definitions.
- Build and push a Python executable or Docker image.
- Finish the deployment and publish status to the pull request.
Hybrid deployments build Docker images for code locations. Serverless deployments choose a Python executable or Docker based on the target build strategy. Branch deployments keep their own deployment context so secrets and definition state apply to the correct scope.
Deployment commands also manage deployment-scoped settings and artifacts. They read or write settings through the deployment API and upload or download files under the deployment scope.
References: python_modules/…/hybrid-github-action.yaml• L41-110 python_modules/…/serverless-github-action.yaml• L45-110 python_modules/…/__init__.py• L21-117 python_modules/…/pex_bundle.Dockerfile• L1-35 python_modules/…/pyproject.toml• L5-33 python_modules/…/pyproject.toml• L5-34
Kubernetes deployment
The Dagster Helm chart is a release package for running Dagster on Kubernetes. It turns deployment values into the system services, user-code connections, storage settings, and run execution path needed by a Dagster instance.
Helm release boundary
The chart is the boundary between Kubernetes resources and Dagster settings. Helm values describe the desired release. The chart creates services, deployments, jobs, ConfigMaps, Secrets, and optional ingress resources.
The release can manage user-code deployments as a subchart or load them from a separate release. User-code images support tags and immutable digests, with a digest taking precedence when both are set. System images and user-code images must use compatible versions.
References: helm/…/README.md• L17-46 helm/…/Chart.yaml• L1-7 helm/…/values.yaml• L1-5 helm/…/values.yaml• L314-374 helm/…/values.yaml• L13-31 helm/…/pyproject.toml• L5-25 helm/…/uv.lock• L1-13
System services and user code
The release separates Dagster system services from project code. The webserver serves the interface and loads definitions. The daemon handles schedules, sensors, queued runs, and run monitoring. User-code deployments serve project definitions through gRPC.
The workspace links the webserver to those code servers. It lists the addresses that the webserver can load, including servers created by this chart or managed by another release. This separation lets a project update user code without rebuilding the system services.
User-code servers can use a normal gRPC server or a reloadable code server. Reloadable code servers cannot run behind multiple replicas because each replica could hold a different definition state. Normal gRPC deployments use a stable server identity derived from their deployment configuration so a change causes a controlled refresh.
References: helm/…/values.yaml• L61-78 helm/…/values.yaml• L314-374 helm/…/values.yaml• L20-67 helm/…/deployment-user.yaml• L1-6 helm/…/deployment-user.yaml• L57-89 helm/…/test_user_deployments.py• L407-490
Run execution choices
The chart supports direct Kubernetes execution and Celery-backed Kubernetes execution. The direct path starts Kubernetes work for each run. The Celery path adds queues and workers so operators can separate workloads and scale worker groups.
The selected launcher must match its workers, broker, queue, and instance settings. User-code deployment settings can also be passed to launched run pods when that behavior is enabled, so the run uses the same image, environment, volumes, and service identity as its code location.
References: helm/…/values.yaml• L513-645 helm/…/values.yaml• L647-802 helm/…/configmap-instance.yaml• L27-36 helm/…/deployment-celery-queues.yaml• L1-66 helm/…/deployment-user.yaml• L78-109 helm/…/test_user_deployments.py• L1072-1264 python_modules/…/pyproject.toml• L11-49
State and supporting services
The chart uses PostgreSQL for Dagster run, event, and schedule state. It can deploy PostgreSQL or connect to an external database. Database access can use a password Secret or workload identity federation.
When the Celery path is enabled, the release can use RabbitMQ or Redis for queue and result state. Compute logs use a separate storage choice. Cloud or local log managers can retain stdout and stderr for later review. Credentials can come from chart-created or externally managed Secrets.
References: helm/…/configmap-instance.yaml• L21-48 helm/…/values.yaml• L7-27 helm/…/values.yaml• L237-297 helm/…/values.yaml• L804-930 python_modules/…/utils.py• L129-186
Release lifecycle
The release prepares the instance before normal service use. A migration job can update the instance schema. The webserver and daemon read the same instance configuration. Readiness checks hold services until required dependencies and code servers are reachable.
This diagram shows how project code and Helm-managed services reach Kubernetes execution.
flowchart LR
P[Dagster project] --> I[User-code image]
I --> U[User-code deployment]
H[Helm release] --> W[Webserver]
H --> D[Daemon]
H --> S[PostgreSQL and optional broker]
H --> U
U --> W
W --> R[Run request]
D --> R
R --> L[Configured run launcher]
L --> X[Kubernetes execution work]
References: helm/…/job-instance-migrate.yaml• L1-38 helm/…/deployment-webserver.yaml• L1-9 helm/…/deployment-daemon.yaml• L1-40 helm/…/values.yaml• L932-1105
Related pages
For the wider ecosystem boundary, see Ecosystem integrations and deployment. For work that runs outside Dagster through a cross-process protocol, see Pipes and external processes.
Change checklist
When these files or sections are changed, remember to consider these:
- Keep each library’s Dagster version, provider range, optional extras, Python markers, and lock resolution compatible.
- When dbt support changes, keep the Core and Fusion choices, generated project template, adapter versions, structured event formats, and mutually exclusive install paths aligned.
- When a project translation changes, preserve the mapping between outside resource identity, Dagster asset identity, dependencies, and result state.
- When column metadata or lineage changes, keep manifest identity, compiled SQL or warehouse schema, translator asset keys, and emitted metadata aligned.
- When a service resource changes, keep its connection names, credential shape, optional provider clients, and run-time use aligned.
- When a data-frame handler changes, preserve schema, column selection, partition, empty-output, escaping, and repeat-materialization behavior across the handler and its I/O manager.
- When an execution adapter changes, keep image or job identity, status mapping, logs, cancellation, and platform dependency ranges consistent.
- When an external orchestration bridge changes, keep context injection, worker requirements, message reading, terminal states, external links, and cancellation behavior aligned.
- When a package entry point changes, update the project tool or host platform that discovers it.
- When deployment build behavior changes, keep agent detection, Python version, dependency sync, artifact type, branch scope, definition-state refresh, and PEX or Docker launch behavior in the same flow.
- When deployment settings or artifacts change, keep the API scope and CLI command behavior aligned with the target deployment.
- When user-code deployment names, ports, server mode, replica count, or image references change, update the workspace entries and any release that loads or launches those code servers.
- When user-code configuration is passed to launched runs, keep the pod context, environment sources, volumes, labels, service account, and instance mount consistent.
- When chart or image versions change, preserve compatibility between the Helm chart, Dagster services, and user-code images.
- When the Helm launcher changes, update its matching worker, broker or queue, Secret, and instance configuration.
- When storage or credential settings change, check both the generated instance configuration and the service environment that consumes its Secrets or identity.
- When REST resource queries change, regenerate the typed models and keep API error variants, schema models, and CLI response schemas synchronized.
- When partition, schedule, sensor, or tick contracts change, update the GraphQL query, generated model, API adapter, and command-facing data shape together.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A package resolves a provider or Python version outside its supported range | Installation or definition loading fails | Keep package metadata, markers, provider constraints, and lock files aligned |
| dbt Core and Fusion are installed in one environment | The shared dbt namespace conflicts and the integration cannot load safely | Select one dbt engine and use its matching extra |
| A dbt Fusion unit-test event is treated as a model or test result | A build can fail while looking up a unit test in the wrong manifest section | Exclude unit-test result events from Dagster event conversion |
| A generated dbt project uses an incompatible Core or adapter bound | Project setup or dbt execution fails | Generate the project with one compatible Dagster, dbt, and adapter set |
| A column lineage entry uses the default asset key instead of the translated key | Lineage points to an asset that is not in the graph | Resolve upstream keys through the translator’s full asset specification |
| A service resource has the wrong credential shape or missing provider client | The run cannot connect to the outside system | Match configuration shape to the selected resource and optional extra |
| A warehouse handler receives an empty output or an unsafe partition value | No table is written or the warehouse statement fails | Handle empty data and escape partition values before storage work |
| An external workflow has no worker or work pool | The Dagster run waits or fails after launch | Provision the external worker and map its terminal state back to Dagster |
| A user-code server is absent from the workspace or has the wrong address | The webserver cannot load project definitions | Keep deployment names, ports, and workspace entries synchronized |
| A reloadable code server uses more than one replica | Requests can reach replicas with different definition state | Keep reloadable code servers at one replica |
| A generated REST model does not match the GraphQL response variant | API calls fail while parsing or hide a server error | Regenerate from the query and handle success, authorization, client, and server variants |
| A paged asset or tick request mixes incompatible cursor and time filters | Results are incomplete or the server ignores part of the request | Use one paging mode and preserve the API limit contract |
| The chart and Dagster package use incompatible versions | System services and user code disagree | Use matching chart and package versions |
| A user-code image uses a mutable tag | A run can use different code across its lifetime | Publish a unique tag or use an immutable digest for each code revision |
| The selected Celery path has no matching queue, broker, or worker | Runs remain queued or workers cannot start | Configure the broker, queues, workers, and launcher as one unit |
| PostgreSQL is unavailable or has invalid credentials or identity bindings | The webserver, daemon, or migration job cannot start | Provide a reachable database and valid password or workload identity settings |
| A Kubernetes client exceeds the tested bound or changes its model shape | Kubernetes API calls or model conversion fail | Validate the client with the supported model adapters before changing the bound |
| A deployment build uses an artifact the target agent cannot run | The build succeeds but the code location cannot start | Resolve the agent type before selecting Python executable, PEX, or Docker output |
| A branch deployment refreshes state with the wrong scope | Definitions use missing values or update the wrong deployment | Keep branch, secret, and location scope aligned |
| A Snowflake dbt project runs on an account without required dbt project support | State refresh fails before Dagster can load the project | Check account support and keep the deployed project artifacts available |
Key files
| File | Why to read it |
|---|---|
| python_modules/…/pyproject.toml | Defines dbt engine choices, provider boundaries, and supported Python versions. |
| python_modules/…/dbt_cli_event.py | Shows how dbt events become Dagster asset events, checks, observations, and lineage metadata. |
python_modules/libraries/dagster-dbt/dagster_dbt/include/pyproject.toml.jinja | Shows the dependency contract generated for a new dbt project. |
| python_modules/…/dlt_event_iterator.py | Shows how dlt load metadata becomes Dagster table metadata. |
| python_modules/…/resources.py | Shows the BigQuery client boundary and freshness access. |
| python_modules/…/io_manager.py | Shows how BigQuery tables, partitions, write modes, and type handlers connect to assets. |
| python_modules/…/test_type_handler.py | Shows the pandas data-frame boundary for BigQuery storage. |
| python_modules/…/resources.py | Shows Snowflake authentication, connection choices, and warehouse access. |
| python_modules/…/snowflake_io_manager.py | Shows how Snowflake tables and partitions connect to asset inputs and outputs. |
| python_modules/…/component.py | Shows how a dbt project hosted in Snowflake becomes Dagster assets and remote runs. |
| python_modules/…/test_snowflake_pandas_type_handler.py | Shows the pandas data-frame boundary for Snowflake storage. |
| python_modules/…/test_snowflake_polars_type_handler.py | Shows the Polars data-frame boundary for Snowflake storage. |
| python_modules/…/serverless-github-action.yaml | Shows the CI order for dependency sync, state refresh, build, and serverless deployment. |
| python_modules/…/hybrid-github-action.yaml | Shows the Docker build and deployment flow for hybrid agents. |
| helm/…/Chart.yaml | Defines the Helm release identity. |
| helm/…/values.yaml | Defines the high-level choices for services, user code, launchers, state, queues, credentials, and ingress. |
| helm/…/values.yaml | Defines the standalone user-code deployment contract. |
| helm/…/deployment-user.yaml | Shows how user-code values become gRPC or reloadable code-server deployments and run context. |
| helm/…/configmap-workspace.yaml | Shows how user-code services become the workspace loaded by the webserver. |
| helm/…/configmap-instance.yaml | Shows how Helm values become shared Dagster instance settings. |
| helm/…/deployment-celery-queues.yaml | Shows how configured queues become Kubernetes worker deployments. |
| helm/…/job-instance-migrate.yaml | Shows the optional schema migration step in the release lifecycle. |
| helm/…/test_user_deployments.py | Shows the contract between user-deployment values and rendered Kubernetes resources. |
| helm/…/pyproject.toml | Defines the Python environment used by Helm schema tooling. |