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

detect end of export stream #502

Merged
merged 1 commit into from
Feb 5, 2024
Merged

detect end of export stream #502

merged 1 commit into from
Feb 5, 2024

Conversation

alahawash
Copy link
Collaborator

This MR introduces a mechanism to detect stream termination, aiming to provide a clearer distinction between streams that end normally and those terminated due to the process being killed unexpectedly.

The last thing cortex-api emits in an export is the manifest-exports object, which will always be present in an export. Receiving this object signals the end of the stream.

@alahawash alahawash merged commit 7546f1e into main Feb 5, 2024
@alahawash alahawash deleted the incomplete-export-fix branch February 5, 2024 14: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