Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add manual flush capabilities #152

Merged
merged 3 commits into from
May 27, 2024
Merged

feat: add manual flush capabilities #152

merged 3 commits into from
May 27, 2024

Conversation

nicklasl
Copy link
Member

We want to allow for the user to manually trigger an upload to the backend services for all events emitted up to that point.

The approach used in this PR is to treat a call to the flush() method as a special event emitted, which will mean that the events in the "write channel" will be guaranteed to have been written to disk (and thus applicable to be part of the "batch" to upload) before the actual flush happens.

@nicklasl nicklasl marked this pull request as ready for review May 24, 2024 06:25
Copy link
Member

@fabriziodemaria fabriziodemaria left a comment

Choose a reason for hiding this comment

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

LGTM

@nicklasl nicklasl merged commit 157eeb9 into main May 27, 2024
2 checks passed
@nicklasl nicklasl deleted the manual-flush branch May 27, 2024 13:57
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.

None yet

2 participants