Skip to content

Add events metadata#25

Merged
ZamoraEmmanuel merged 4 commits intodevelopmentfrom
fme-12896
Mar 6, 2026
Merged

Add events metadata#25
ZamoraEmmanuel merged 4 commits intodevelopmentfrom
fme-12896

Conversation

@ZamoraEmmanuel
Copy link
Contributor

No description provided.

@ZamoraEmmanuel ZamoraEmmanuel changed the title Fme 12896 Add events metadata Feb 27, 2026
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()

@sonarqube-pull-requests
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
9.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube

@ZamoraEmmanuel ZamoraEmmanuel merged commit 3df7ae7 into development Mar 6, 2026
1 of 2 checks passed
@ZamoraEmmanuel ZamoraEmmanuel deleted the fme-12896 branch March 6, 2026 18:20
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