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
Sylvain Hazard
07/18/2022, 7:33 AM
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 🙂
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.