I'm trying to define a partitioned asset, that sho...
# ask-community
t
I'm trying to define a partitioned asset, that should run based on a sensor (I will have one new daily file, that'll pop up sporadically during the current day). How can I, using
RunRequest
, control the output of
context.asset_partition_key_for_output()
within my asset?
o
hi @Thomas Kobber Panum! The RunRequest object supports a
partition_key
parameter (here's an example of setting that for a static-partitioned job, but it works the same for time-partitions: https://docs.dagster.io/concepts/partitions-schedules-sensors/schedules#static-partitioned-jobs)