https://dagster.io/ logo
Title
s

Spencer Nelson

03/28/2023, 10:47 PM
Does
@dagster.asset_sensor
support partitioned assets, or should I be using
@dagster.multi_asset_sensor
for those?
:dagster-bot-resolve: 1
s

sean

03/29/2023, 2:28 PM
You should be able to use an asset sensor with a partitioned asset-- the sensor will trigger for all materializations regardless of partition. You’ll just need to apply any logic dependent on the materialization partition inside the sensor eval function.
s

Spencer Nelson

03/29/2023, 2:34 PM
What is the right way to find out which upstream partition was materialized?
I found “event.dagster_event.event_specific_data.materialization.partition” but that seems way too deep in internals
s

sean

03/29/2023, 3:50 PM
event.dagster_event.partition
should work
👍 2