thankful-father-61351
06/25/2023, 8:01 PMforeach 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?straight-shampoo-11124
06/26/2023, 6:43 AMstraight-shampoo-11124
06/26/2023, 6:44 AM[None] trick is a recommended workaround https://outerbounds-community.slack.com/archives/C02116BBNTU/p1685728908983409?thread_ts=1685728603.630099&cid=C02116BBNTUstraight-shampoo-11124
06/26/2023, 6:45 AMif data_in_s3:
self.data = s3.get_many(data_url)
else:
self.data = process_data()
so if the data is cached, the task just executes much fasterthankful-father-61351
06/26/2023, 9:15 AMstraight-shampoo-11124
06/27/2023, 4:44 AMif conditional in a remote task, if it helps
You can't exactly skip over steps but you can make steps do nothing, so instead of running for minutes or hours, they just run for 10-20 seconds or sothankful-father-61351
06/28/2023, 1:27 PMstraight-shampoo-11124
06/30/2023, 3:28 AM