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: change retention #324

Merged
merged 4 commits into from
Dec 5, 2023
Merged

feat: change retention #324

merged 4 commits into from
Dec 5, 2023

Conversation

yashmehrotra
Copy link
Member

@yashmehrotra yashmehrotra commented Dec 1, 2023

Fixes #307

@yashmehrotra yashmehrotra requested a review from moshloop December 1, 2023 14:46
@yashmehrotra yashmehrotra marked this pull request as ready for review December 1, 2023 14:49
Copy link

github-actions bot commented Dec 1, 2023

E2E -

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit f6709cd.

♻️ This comment has been updated with latest results.

@yashmehrotra yashmehrotra marked this pull request as draft December 2, 2023 07:52
@yashmehrotra yashmehrotra marked this pull request as ready for review December 4, 2023 07:50
scrapers/run.go Outdated
if err := DeleteStaleConfigItems(ctx.DutyContext(), *persistedID); err != nil {
return nil, fmt.Errorf("error deleting stale config items: %w", err)
}
}

// Process change retention
for _, change := range ctx.ScrapeConfig().Spec.Retention.Changes {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should do this as a job, rather than at every scrape

@yashmehrotra yashmehrotra requested a review from moshloop December 5, 2023 05:04
@moshloop moshloop merged commit 7fd0755 into main Dec 5, 2023
7 checks passed
Copy link

github-actions bot commented Dec 5, 2023

🎉 This PR is included in version 0.0.150 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@adityathebe adityathebe deleted the config-retention-spec branch December 5, 2023 10:57
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.

Change retention rules
2 participants