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: aggregator keeping oldest piece ts #1188

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Nov 27, 2023

Conveniently store the timestamp of the oldest piece in table, so that when monitoring aggregates time to deal for alerts, we do not need to read buffer, decode it, and find out it every time a CRON runs.

@vasco-santos vasco-santos force-pushed the feat/aggregator-keeping-oldest-piece-ts branch from a101b3d to b71cdba Compare November 27, 2023 13:29
@vasco-santos vasco-santos marked this pull request as ready for review November 27, 2023 13:30
Copy link
Member

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

I think this is fine but I'd perhaps call it something like minPieceAge...

@vasco-santos
Copy link
Contributor Author

Age would be more a difference from now to a given date, and not the given date itself. But I can rename from oldestPieceInsertedAt to minPieceInsertedAt

@vasco-santos vasco-santos merged commit 97a7def into main Nov 28, 2023
2 checks passed
@vasco-santos vasco-santos deleted the feat/aggregator-keeping-oldest-piece-ts branch November 28, 2023 13:36
vasco-santos added a commit that referenced this pull request Nov 28, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](filecoin-api-v4.1.2...filecoin-api-v4.2.0)
(2023-11-28)


### Features

* aggregator keeping oldest piece ts
([#1188](#1188))
([97a7def](97a7def))


### Fixes

* package metadata
([#1161](#1161))
([b8a1cc2](b8a1cc2))
* storefront events cron with max concurrency
([#1191](#1191))
([11010c9](11010c9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Vasco Santos <[email protected]>
gobengo pushed a commit that referenced this pull request Nov 28, 2023
Conveniently store the timestamp of the oldest piece in table, so that
when monitoring aggregates time to deal for alerts, we do not need to
read buffer, decode it, and find out it every time a CRON runs.
gobengo pushed a commit that referenced this pull request Nov 28, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](filecoin-api-v4.1.2...filecoin-api-v4.2.0)
(2023-11-28)


### Features

* aggregator keeping oldest piece ts
([#1188](#1188))
([97a7def](97a7def))


### Fixes

* package metadata
([#1161](#1161))
([b8a1cc2](b8a1cc2))
* storefront events cron with max concurrency
([#1191](#1191))
([11010c9](11010c9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Vasco Santos <[email protected]>
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.

2 participants