Skip to content

Commit f15b176

Browse files
jennmuengandrewshie-sentry
authored andcommitted
fix(autofix): Stricter manual autofix rate limits (#91894)
Implements stricter rate limits for manually triggered Autofixes. Does not affect Automation-ran runs. Max 20 runs per hour per org, and max 5 runs per minute per user.
1 parent e6e7ce0 commit f15b176

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry/api/endpoints/group_ai_autofix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ class GroupAutofixEndpoint(GroupAiEndpoint):
3535
enforce_rate_limit = True
3636
rate_limits = {
3737
"POST": {
38-
RateLimitCategory.IP: RateLimit(limit=10, window=60),
39-
RateLimitCategory.USER: RateLimit(limit=10, window=60),
40-
RateLimitCategory.ORGANIZATION: RateLimit(limit=10, window=60),
38+
RateLimitCategory.IP: RateLimit(limit=5, window=60),
39+
RateLimitCategory.USER: RateLimit(limit=5, window=60),
40+
RateLimitCategory.ORGANIZATION: RateLimit(limit=20, window=60 * 60), # 1 hour
4141
},
4242
"GET": {
4343
RateLimitCategory.IP: RateLimit(limit=256, window=60),

0 commit comments

Comments
 (0)