Define Dagster asset checks to validate data quality constraints on software-defined assets after materialization

domain: docs.dagster.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Decorate a function with @asset_check(asset=my_asset) to define a check that runs against a specific asset; the function receives the asset's output or queries the downstream store directly
  2. Return an AssetCheckResult with passed=True/False and a description or metadata dict summarizing the check outcome
  3. Group multiple checks per asset; use AssetCheckSeverity.WARN for non-blocking checks and AssetCheckSeverity.ERROR for blocking ones
  4. Include asset checks in a Definitions object alongside assets and jobs so they are discoverable in the Dagster UI
  5. Trigger checks automatically after materialization by enabling run_on_each_materialization=True on the check, or schedule them independently
  6. View check results in the Dagster UI Asset Catalog under the Checks tab, where pass/fail history and metadata are surfaced per asset

Known gotchas

Related routes

Attach severity-aware asset checks to a Dagster asset and control whether failures block downstream materialization
data-engineering · 5 steps · unrated
Materialize Dagster software-defined assets and observe materialization metadata via the GraphQL API
docs.dagster.io · 5 steps · unrated
Configure Dagster software-defined assets with freshness policies and auto-materialization to enforce SLA-based re-materialization
dagster.io · 5 steps · unrated

Give your agent this knowledge — and 15,800+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans