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

fix(dynamic-sampling):remove deleted projects from rebalancing #85443

Merged

Conversation

shellmayr
Copy link
Member

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 19, 2025
Comment on lines +298 to +302
project_ids = list(
Project.objects.filter(organization_id__in=org_ids, status=ObjectStatus.ACTIVE).values_list(
"id", flat=True
)
)
Copy link
Member Author

Choose a reason for hiding this comment

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

This should be limited to 100 orgs, but can still be quite a large qeury (and the list of projects will be comparably large as well). Unsure if we need a faster / more efficient approach here

Copy link
Member

Choose a reason for hiding this comment

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

True, but it looks to me that there is not much it can be done inside of this function to optimize it. If this turns out to be too slow, we can lower the limit to do the filtering for less orgs

@shellmayr shellmayr marked this pull request as ready for review February 19, 2025 14:19
@shellmayr shellmayr requested a review from a team as a code owner February 19, 2025 14:19
@shellmayr shellmayr requested a review from jan-auer February 19, 2025 14:30
@shellmayr shellmayr merged commit 26d14f3 into master Feb 20, 2025
49 checks passed
@shellmayr shellmayr deleted the shellmayr/fix/remove-deleted-projects-from-rebalancing branch February 20, 2025 08:18
Copy link

sentry-io bot commented Feb 25, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ MaxSnowflakeRetryError: Max allowed ID retry reached. Please try again in a second pytest.runtest.protocol tests/sentry/dynamic_sa... View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants