Hi everyone. I have a process that submits multip...
# ask-community
s
Hi everyone. I have a process that submits multiple jobs to an external service, and I have to wait for all of them to be finished before proceeding. I've found how to wait in a task for some external process https://github.com/PrefectHQ/prefect/discussions/3944 to be finished but no idea how to wait for multiple ones to be finished. Thanks
k
Isn’t it just a matter of adding this code to the other tasks? Or you can map over tasks with this code? Or am I missing something? 😅
s
Pretty new to Prefect, so maybe I'm not understanding how everything works. The process is like this: I need to call a external process multiple times on a parallel way, wait for all of them to finish, and then execute another single task over the output of the previous parallel tasks (some files in an S3 folder)
k
The mapping docs will help you with that
s
Exactly what I was looking for @Kevin Kho. Thanks a lot!