What's the order of processing `DynamicOutput`? Is...
# ask-community
m
What's the order of processing
DynamicOutput
? Is it alphabetical sort on
mapping_key
? Or order they're `yield`ed? For the sake of my database row/gap locks, I'd like to randomize the order of my
DynamicOutput
processing. I think if I randomize the order but my
mapping_key
starts with my db primary key (which I had done so the step name shown in Dagit gives me a hint of what's being processed) then maybe Dagster's sorting the steps by
mapping_key
and undoing my shuffling, but I'm not quite sure.
o
hi @Mark Fickett! there's no explicit sorting that happens when determining the next set of steps to execute, other than when the priority tag on an op is explicitly set. from a look through the relevant code, it looks like dynamic outputs will be processed in the order they were emitted
ty thankyou 1