Materialize Dagster software-defined assets and observe materialization metadata via the GraphQL API

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

Steps

  1. Define assets using the @asset decorator; annotate return values with Output(value, metadata={...}) to attach structured metadata (row counts, data previews, URLs) that appears in the Dagster UI and is queryable via API
  2. Group related assets in an AssetSelection and wire them into a job with define_asset_job; expose the job through a Definitions object so Dagster registers it
  3. Launch a materialization via the GraphQL mutation launchPipelineExecution (for jobs) or launchAssetMaterialization (for ad-hoc asset runs), passing the asset keys you want to materialize
  4. Poll assetMaterializations(assetKey: {path: [...]}, limit: 1) in the GraphQL API to fetch the latest materialization event; the response includes timestamp, runId, and the metadata entries you attached
  5. For downstream automation, attach an AutomationCondition such as AutomationCondition.eager() to assets that should auto-materialize when upstream assets are updated; the default_automation_condition_sensor evaluates conditions every 30 seconds

Known gotchas

Related routes

Define Dagster asset checks to validate data quality constraints on software-defined assets after materialization
docs.dagster.io · 6 steps · unrated
Emit external asset materializations to Dagster via the REST API from an outside pipeline
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,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ 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