openedx / event-routing-backends

Consume edx tracking events and transform/transmit them to other LRSs.
GNU Affero General Public License v3.0
9 stars 18 forks source link

Event bus configuration causes events to be duplicated #410

Closed bmtcril closed 6 months ago

bmtcril commented 7 months ago

Currently when both xapi and caliper keys are set in EVENT_TRACKING_BACKENDS and pointed to eventtracking.backends.event_bus.EventBusRoutingBackend each event that passes the whitelist will be sent to the same event bus stream twice.

The consumer does not discriminate about which backend it is handling, passing all events to any configured backend. This causes events to be transformed and sent twice. When batching, LRSs will reject the batch due to duplicate event ids. Off the top of my head we should either:

Neither of these are great, I'm open to other suggestions but this is a high priority issue.

bmtcril commented 6 months ago

@Ian2012 this was fixed, right?

Ian2012 commented 6 months ago

Yes, can be closed now.