Trigger azure synapse pipeline only when multiple events hit event grid topic?

I am using Azure Synapse and want to trigger a pipeline only when certain number of events occur. I referred to learn.microsoft.com/en-us/azure/data-factory/how-to-create-custom-event-trigger and was able to trigger a pipeline when 1 event is pushed to the event grid topic.

But is there a way to trigger the pipeline only when >1 events are pushed to event grid topic ?

Example:

event E1 is published to event grid at 10am ||
event E2 is published to event grid at 11am

I want my synapse pipeline to be triggered at/after 11am.

Read more here: Source link