I have an agent designed to run a workflow multiple times based on a JSON array input. The input array always contains more than 100 items.
However, I’ve noticed that regardless of the array size, the workflow only runs exactly 100 times. After that, I receive the message: “All runs complete.”
I’m attaching a screenshot from the debugger for reference. As you can see, the workflow should run 137 times, but it stops after the 100th run.
Is there a built-in limitation on the number of iterations that I might not be aware of?
If so, is there a recommended way to handle arrays larger than 100 items?
Yes, this limit is set by default to protect you from runaway costs caused by infinite loops or other configuration errors. You can control it by changing the agent’s “Maximum Invocations per Operation” setting: Run Workflow Block | MindStudio University
Yes, I’m running the workflow in parallel, but since it needs to scrape quite a few news pages, it still takes about 3-4 minutes which I think is perfectly reasonable.
Also, Sean’s answer gave me the idea to build my own “MindStudio Assistant” agent. Now I can ask it my questions before bothering you all again.