"Why Are Only the Last 100 Events Being Emitted with $.send.emit?"

This topic was automatically generated from Slack. You can find the original thread here.

Hi all!
I’m having some troubles with the $.send.emit function.
I’m emitting events to trigger another workflow like this:

for (let x = 0; x<steps.sanity.$return_value.length; x++) {
      $.send.emit({
        document: steps.sanity.$return_value[x]
      })
}

It should emit like 2k events, instead I always see just the last 100 emitted events, even though I’ve just set a throttling limit to 25req/s and I don’t receive any errors.
Am I doing something wrong?
Thanks!

You’ll notice in your throttling settings there is a setting for the queue length, you’ll need to set that to the expected amount of events you are triggering to that workflow at once.

You should’ve received an error in your email if you have notifications enabled.