Hi. I have a question regarding the context of a G...
# ask-community
s
Hi. I have a question regarding the context of a GitHub discussion I started (https://github.com/dagster-io/dagster/discussions/15149#discussioncomment-6475594). Is it possible to create a sensor that materializes all partitions for each tick every time?
o
hi @Simon Ammer! this is possible, as you can explicitly yield RunRequests with specific partition keys from the body of a sensor, i.e.
Copy code
@sensor
def my_sensor():
    for partition_key in my_partitions_def.get_partition_keys():
        yield RunRequest(run_key=None, partition_key=partition_key)
s
Awesome. Thank you for your help 😁