We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf7932e commit 652b0e8Copy full SHA for 652b0e8
snuba/web/db_query.py
@@ -27,6 +27,7 @@
27
from snuba.downsampled_storage_tiers import Tier
28
from snuba.query import ProcessableQuery
29
from snuba.query.allocation_policies import (
30
+ DEFAULT_PASSTHROUGH_POLICY,
31
MAX_THRESHOLD,
32
AllocationPolicy,
33
AllocationPolicyViolations,
@@ -809,7 +810,7 @@ def _apply_allocation_policies_quota(
809
810
Sets the resource quota in the query_settings object to the minimum of all available
811
quota allowances from the given allocation policies.
812
"""
- if len(allocation_policies) == 0:
813
+ if allocation_policies == [DEFAULT_PASSTHROUGH_POLICY]:
814
logger.info("No allocation policies to apply")
815
return
816
0 commit comments