Not sure where to post this but is there a way to ...
# prefect-community
j
Not sure where to post this but is there a way to get a task to repeat N number of times? Says I've got a pipeline that calls an APi which returns a json array. I need to execute a task per element in said array and report back?
1
s
Hi ! Assuming you're talking about Prefect 1.x. Mapping looks like what you want to be doing. In some corner cases where the number of loops is not deterministic (e.g. relies on some variable), you could consider using loops. Don't hesitate to ask if you have some more questions after reading those docs 🙂
🙌 1
🙏 1