Add usage queue worker autoscaling

This commit is contained in:
elky
2026-06-26 14:02:57 +08:00
parent 6c5e70ccb1
commit 7e9424008f
21 changed files with 1801 additions and 85 deletions
@@ -11,6 +11,7 @@ describe('poolAdvancedDialog', () => {
'probing_enabled',
'account_self_check_enabled',
'auto_remove_banned_keys',
'auto_remove_quota_exhausted_keys',
'skip_exhausted_accounts',
])
})
@@ -32,6 +33,11 @@ describe('poolAdvancedDialog', () => {
label: '异常自动清除',
description: '检测到不可恢复账号异常,或 RT 与 AT 均失效时自动从号池移除。',
},
{
key: 'auto_remove_quota_exhausted_keys',
label: '自动清理额度耗尽',
description: '探测到黑色“额度耗尽”账号后自动从号池移除。',
},
{
key: 'skip_exhausted_accounts',
label: '跳过额度耗尽账号',
@@ -2,6 +2,7 @@ export type PoolHealthToggleKey =
| 'probing_enabled'
| 'account_self_check_enabled'
| 'auto_remove_banned_keys'
| 'auto_remove_quota_exhausted_keys'
| 'skip_exhausted_accounts'
export interface PoolHealthToggleCard {
@@ -32,6 +33,11 @@ export function buildPoolHealthToggleCards(): PoolHealthToggleCard[] {
label: '异常自动清除',
description: '检测到不可恢复账号异常,或 RT 与 AT 均失效时自动从号池移除。',
},
{
key: 'auto_remove_quota_exhausted_keys',
label: '自动清理额度耗尽',
description: '探测到黑色“额度耗尽”账号后自动从号池移除。',
},
{
key: 'skip_exhausted_accounts',
label: '跳过额度耗尽账号',