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(scan estimation): add ttl to scanEstimation and assetScanEstimation #688

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

fishkerez
Copy link
Contributor

@fishkerez fishkerez commented Sep 13, 2023

Description

Following #603 needed to clean up scanEstimation and assetScanEstimation resources after a period of times.
This PR adds ttl to these resources and clean them up from the DB after this time.
The default ttl for both resources (if not set) is 2 hours

Type of Change

[ ] Bug Fix
[x] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@fishkerez fishkerez requested a review from a team as a code owner September 13, 2023 07:26
@fishkerez fishkerez self-assigned this Sep 13, 2023
@fishkerez fishkerez changed the title add ttl to scanEstimation and assetScanEstimation feat(scan estimation): add ttl to scanEstimation and assetScanEstimation Sep 13, 2023
@fishkerez fishkerez added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit ba57170 Sep 21, 2023
16 checks passed
@fishkerez fishkerez deleted the estimation-garbage-collector branch September 21, 2023 16:09
@chrisgacsal chrisgacsal mentioned this pull request Nov 6, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants