Forge: InvocationLimitReachedError

Hello,
we are encountering an issue related to the InvocationLimitReachedError and would like to understand it a bit better.

In the documentation, it mentions:
“An event resolver can push more events to the queue, creating a cycle. This error means an event pushed another event into the queue more than 1000 times. To avoid this, process more events in parallel.”

Can you tell us what is the exact conditions under which this limit is reached? (Is it all about the depth of the event recursion chain?)
Lets assume this following setup:

  • Scheduler A (creating A events): Checks if it’s the right time to run (once a day), if not, pushes an event to the queue with a 15-minute delay.
  • Scheduler B: Operates similarly to Scheduler A.:

Is this limit related to the depth of a single event recursion chain, or does it also consider the total number of events across multiple chains? Does each scheduler (chain of events) maintain its own recursion chain, or do they share a limit?

Thank you for any tips :slight_smile: