Oren Lederman
08/15/2023, 4:28 PMrequest file|line number
(so I can later easily find all of the partitions belonging to a specific request file)
Thanks!sean
08/15/2023, 8:42 PMDynamicPartitionsDefinition
containing the time interval-- we do have a TimeWindowPartitionsDefinition
class, but it requires a cron schedule, and it sounds like your intervals are irregular. This solution is an incremental step from what you have and might be easier, but the benefits may be limited.
• Switch to using assets with either DynamicPartitionsDefinition
or MultiPartitionsDefinition
. Assets are the future of Dagster so this is in principle more desirable, but the current asset model might not have the flexibility to accommodate you. What does a run of your job look like-- are there a lot of different ops?Oren Lederman
08/15/2023, 8:59 PMMultiPartitionsDefinition
with only dynamic partitions? Anything I need to know about it, or it’s just a matter of creating the correct MultiPartitionKeys from the sensor?sean
08/16/2023, 6:16 PMIs there an example of a MultiPartitionsDefinition with only dynamic partitions?I’m not aware of one, but cc @claire for confirmation.
claire
08/18/2023, 5:22 PM@asset(
partitions_def=MultiPartitionsDefinition(
{"a": DynamicPartitionsDefinition(name="a"), "b": DynamicPartitionsDefinition(name="b")}
)
)
def multipartitioned_with_dynamic_dimensions():
...
Multipartitioned assets with dynamic dimensions function the same as other multipartitioned assets, just like you mentioned you'll need to create the correct `MultiPartitionKey`s