Create and trigger an asset sensor in Dagster to launch a downstream job when an upstream asset materializes

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. Decorate a function with @asset_sensor(asset_key=AssetKey([...]), job=downstream_job) to create a sensor that monitors a specific asset for new materialization events
  2. Inside the sensor function, receive the AssetMaterializationEvent and return RunRequest() to trigger the downstream job; return SkipReason('...') if no action is needed for this materialization
  3. Include the sensor in your Definitions object alongside the monitored asset and the downstream job so Dagster can resolve all references at load time
  4. Start the sensor from the Dagster UI or via CLI (dagster sensor start --name my_sensor) so the Dagster daemon begins polling for new materialization events
  5. For multi-asset monitoring, use the @multi_asset_sensor decorator, which accumulates events across multiple asset keys and allows you to emit one RunRequest covering all new materializations since the last cursor advance

Known gotchas

Related routes

Define Dagster software-defined assets with partitions and a partition-aware sensor to trigger incremental runs
docs.dagster.io · 5 steps · unrated
Implement a Dagster sensor that monitors an external system and conditionally launches runs with dynamic run config
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

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