Skip to content

Conversation

@vincent-pochet
Copy link
Contributor

@vincent-pochet vincent-pochet commented Nov 7, 2025

Context

This PR is part of the Pre-aggregation epic, it follows #606

The main goal of this feature is to setup a complete aggregation pipeline that will be leveraged to compute the customer usage without re-querying the full set of events.

Description

This PR is the last preparatory PR before #608. The goal is to extract the record processing logic into simpler function that will make it easier to add graceful shutdown

@vincent-pochet vincent-pochet merged commit 600e195 into main Nov 7, 2025
1 check passed
@vincent-pochet vincent-pochet deleted the misc-simplify-code branch November 7, 2025 15:45
fetches := cg.client.PollRecords(context.Background(), 10000)
if fetches.IsClientClosed() {
cg.logger.Info("client closed")
return
Copy link
Contributor

Choose a reason for hiding this comment

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

@vincent-pochet this is not the same behaviour. Before we returned from poll when client got closed. Now we will loop indefinitely.

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.

4 participants