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

Jason Dunne

02/21/2024, 8:01 PM
is it possible to execute partitions in order when materializing an asset? My nth partition depends on the (n-1)th partition so I'm wondering if it's possible to enforce a strict order here
m

Matt Clarke

02/21/2024, 8:54 PM
You can declare self dependencies using partition mappings
You could then have it materialise itself with an auto materialisation policy
Although depending on the other partitions this issue might be relevant: https://github.com/dagster-io/dagster/issues/16890
j

Jason Dunne

02/21/2024, 9:01 PM
Ty!
m

Matt Clarke

02/21/2024, 9:04 PM
No worries. I’m not entirely sure whether or not backfills respect self partition mappings at the moment though
Also, is this an asset that you could materialise multiple contiguous partitions at the same time? If so, I’d look into backfill policies
j

Jason Dunne

02/21/2024, 9:09 PM
I don't think so unfortunately, they have to be executed one at a time
m

Matt Clarke

02/21/2024, 9:12 PM
Ah, never mind then!
4 Views