Skip to content

Conversation

@cbrady
Copy link
Collaborator

@cbrady cbrady commented Dec 12, 2025

No description provided.

@cbrady cbrady self-assigned this Dec 12, 2025
@cbrady cbrady requested a review from a team as a code owner December 12, 2025 15:43
# Do a final flush before shutting down to avoid losing buffered events
await self._flush()
self.shutdown_event.set()
await self.flush_task
Copy link
Contributor

@ryanechternacht ryanechternacht Dec 12, 2025

Choose a reason for hiding this comment

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

do we still need to await this then? I guess it shouldn't hurt -- it no-ops anyway

(the await self.flush_task)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we do because we want to ensure that the background tasks close before we return.

@cbrady cbrady merged commit a34a1af into main Dec 12, 2025
4 checks passed
@cbrady cbrady deleted the chris/sch-5404-python-sdk-asyncclient-doesnt-flush-events-on-shutdown branch December 12, 2025 18:14
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