Are dynamic workflow pods safe to preempt? Assumin...
# flyte-support
m
Are dynamic workflow pods safe to preempt? Assuming they get rescheduled could preemption cause any issues?
t
should be safe.
shouldn’t be any issue, they should get rescheduled as normal
m
Just so I have the right mental model: is it the case that dynamic workflows compile their subdag and then submit back to the flytepropeller to run?
t
yes
that’s exactly correct. it’s run-time compilation, so you have more flexibility.
keep in mind you still can’t pass the output of a task inside the dynamic task to a python function like
range
because it’s still a promise. only the top-level inputs to the dynamic task itself are resolved.
m
Thanks, that makes sense. Just curious, what would happen if the dynamic workflow was compiled / submitted and then a preemption happened at the tail end of the dynamic run? Would the subsequent rerun submit the same dag again?
t
once the parent task is done the dag is safely stored on s3. if pre-emption happens before then, then yeah it’ll have to be regenerated, side-effects included.
if after, then the dag structure will just be read from s3
m
ah nice sounds like it is "atomic", thank you for explaining!