https://dagster.io/ logo
#ask-community
Title
# ask-community
t

Thomas Kobber Panum

06/11/2023, 12:12 PM
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

owen

06/12/2023, 5:50 PM
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)