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

Increase max resolution for jitter from 1min to 2min #5862

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snuba/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class RedisClusters(TypedDict):
# We expect to remove them after all storages and migration groups have been migrated.
READINESS_STATE_FAIL_QUERIES: bool = True

MAX_RESOLUTION_FOR_JITTER = 60
MAX_RESOLUTION_FOR_JITTER = 120

# These contexts will not be stored in the transactions table
# Example: {123: {"context1", "context2"}}
Expand Down
4 changes: 2 additions & 2 deletions tests/subscriptions/test_task_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@
pytest.param(
JitteredTaskBuilder(),
"jittered",
[(ALIGNED_TIMESTAMP, build_subscription(timedelta(minutes=2), 0))],
[(ALIGNED_TIMESTAMP, build_subscription(timedelta(minutes=3), 0))],
[
(
ALIGNED_TIMESTAMP,
ScheduledSubscriptionTask(
datetime.fromtimestamp(ALIGNED_TIMESTAMP),
SubscriptionWithMetadata(
EntityKey.EVENTS,
build_subscription(timedelta(minutes=2), 0),
build_subscription(timedelta(minutes=3), 0),
1,
),
),
Expand Down
Loading