Any reason why using `foreach` with 0 splits is no...
# ask-metaflow
t
Any reason why using
foreach
with 0 splits is not allowed? Because there would be no way to merge the artifacts? I have a flow where one of my steps is to make sure a given dataset exists. Or put in a different way, to run the data processing for each sample that is missing in my “cache” (bucket on S3). But when this number is zero, my flow breaks. What workarounds are recommended? Should I just do a
foreach=[None]
and then have a check for None in the step that processes the samples? Or is there other ways?
1