Skip to content

Add events metadata#25

Open
ZamoraEmmanuel wants to merge 2 commits intodevelopmentfrom
fme-12896
Open

Add events metadata#25
ZamoraEmmanuel wants to merge 2 commits intodevelopmentfrom
fme-12896

Conversation

@ZamoraEmmanuel
Copy link

No description provided.

@ZamoraEmmanuel ZamoraEmmanuel changed the title Fme 12896 Add events metadata Feb 27, 2026
@sonarqube-pull-requests
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
58.5% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Copy link
Contributor

@chillaq chillaq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to test the async mode locally.

"""Stop receiving Split SDK events."""
self._event_receiver = None

def _notify_receiver(self, split_event, event_metadata):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need an async call for this method:
async def _notify_receiver(...)
# same code
await self._event_receiver._on_split_event_async(...)

def destroy(self, destroy_event=None):
self._factory.destroy(destroy_event)

async def _register_split_events_async(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to use different handler for async, keep in mind async mode does not support lambda, for ex:
await em.register(...., self._notify_receiver_async())

self._split_client_wrapper.unregister_for_split_events()
super().detach()

def _on_split_event(self, split_event, event_metadata):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an async call with the same code
async def _on_split_event_async()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants