I encountered an issue with an infinite loop while operating a service using EventBridge and AWS Batch for the first time.
I had set up three EventBridge Roles using the following basic pattern for Batch connections:
{
"source": [
"aws.batch"
]
}
After that, another EventBridge triggered a Batch operation, but then it began to loop infinitely.
Upon consulting with AWS regarding this matter, they indicated that the Batch operation was being tracked and other EventBridge Roles might have been activated after 1 minute.
However, while it makes sense that three server calls could happen 1 minute after confirming the Batch operation, it's confusing why, upon checking the last log, there were 800 calls per minute.
Could it be that if Batch is called multiple times within a minute, all those calls trigger it to operate multiple times?
If so, such a Role seems too risky. The more I think about it, the less likely it seems that this would be a default setting... It's very perplexing.
Please check with the experts.