Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
eb94342f
Commit
eb94342f
authored
Mar 24, 2026
by
erio
Browse files
chore: adjust internal500 penalty durations to 30m / 2h
parent
d563eb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/antigravity_internal500_penalty.go
View file @
eb94342f
...
...
@@ -12,8 +12,8 @@ import (
// INTERNAL 500 渐进惩罚:连续多轮全部返回特定 500 错误时的惩罚时长
const
(
internal500PenaltyTier1Duration
=
1
0
*
time
.
Minute
// 第 1 轮:临时不可调度
1
0 分钟
internal500PenaltyTier2Duration
=
10
*
time
.
Hour
// 第 2 轮:临时不可调度
10
小时
internal500PenaltyTier1Duration
=
3
0
*
time
.
Minute
// 第 1 轮:临时不可调度
3
0 分钟
internal500PenaltyTier2Duration
=
2
*
time
.
Hour
// 第 2 轮:临时不可调度
2
小时
internal500PenaltyTier3Threshold
=
3
// 第 3+ 轮:永久禁用
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment