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 state pruner #161

Open
wants to merge 84 commits into
base: master
Choose a base branch
from
Open

feat: add state pruner #161

wants to merge 84 commits into from

Conversation

hal3e
Copy link
Contributor

@hal3e hal3e commented Nov 22, 2024

Adds the state_pruner service which will delete entries older that a certain retention duration from the db.

Additional refactoring done in this PR:

  • the old ports scheme was removed in favor of having each service declare its own ports and the adapters implementing them.
  • adapters moved to adapters folder
  • added test-helpers crate
  • moved service tests to integration tests

@hal3e hal3e added the bug Something isn't working label Nov 22, 2024
@hal3e hal3e self-assigned this Nov 22, 2024
@hal3e hal3e added big and removed bug Something isn't working labels Nov 22, 2024
committer/src/api.rs Show resolved Hide resolved
committer/src/setup.rs Show resolved Hide resolved
e2e/src/lib.rs Outdated Show resolved Hide resolved
packages/adapters/clock/src/lib.rs Outdated Show resolved Hide resolved
packages/adapters/storage/src/postgres.rs Outdated Show resolved Hide resolved
packages/adapters/storage/src/postgres.rs Show resolved Hide resolved
packages/services/src/state_pruner.rs Outdated Show resolved Hide resolved
packages/services/tests/state_pruner.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@segfault-magnet segfault-magnet left a comment

Choose a reason for hiding this comment

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

Ty for all the QoL improvements.

We should probably start off setting the pruning cutoff to something conservative like 2w.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants