Workflow Stops at 100 Iterations – Possible Limitation?

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?

Thanks in advance for any guidance!

1 Like

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

Side note - have you tried running in parallel (vs async)? Could this cut down on your runtime?

1 Like

Thanks for the tips!

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. :grinning_face_with_smiling_eyes:

Feel free to check it out here:
https://app.mindstudio.ai/agents/mindstudio-assistant-3ffd8317

Or remix it however you like:
https://app.mindstudio.ai/agents/mindstudio-assistant-3ffd8317/remix