mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
feat(cleanup): 解耦 request_candidates 与 provider_api_keys 生命周期
- 移除 request_candidates.key_id 对 provider_api_keys 的外键约束(含迁移脚本) - 删除 Key 时不再级联删除候选记录,改为独立按保留天数定时清理 - 新增 request_candidates_retention_days / request_candidates_cleanup_batch_size 配置项 - batch_delete_task 增加 lock_timeout 及超时自动降批重试机制 - cleanup_key_references 提取阶段化清理流程,移除 RequestCandidate 联动删除 - 前端 CleanupPolicySection 新增候选记录保留天数和清理批次配置 Closes #227 Co-authored-by: Entropy-Xu <entropy.xu@cloudhabitatsh.com>
This commit is contained in:
@@ -99,6 +99,8 @@
|
||||
:log-retention-days="systemConfig.log_retention_days"
|
||||
:cleanup-batch-size="systemConfig.cleanup_batch_size"
|
||||
:audit-log-retention-days="systemConfig.audit_log_retention_days"
|
||||
:request-candidates-retention-days="systemConfig.request_candidates_retention_days"
|
||||
:request-candidates-cleanup-batch-size="systemConfig.request_candidates_cleanup_batch_size"
|
||||
:loading="cleanupConfigLoading"
|
||||
:has-changes="hasCleanupConfigChanges"
|
||||
@save="saveCleanupConfig"
|
||||
@@ -109,6 +111,8 @@
|
||||
@update:log-retention-days="systemConfig.log_retention_days = $event"
|
||||
@update:cleanup-batch-size="systemConfig.cleanup_batch_size = $event"
|
||||
@update:audit-log-retention-days="systemConfig.audit_log_retention_days = $event"
|
||||
@update:request-candidates-retention-days="systemConfig.request_candidates_retention_days = $event"
|
||||
@update:request-candidates-cleanup-batch-size="systemConfig.request_candidates_cleanup_batch_size = $event"
|
||||
/>
|
||||
|
||||
<!-- 定时任务 -->
|
||||
|
||||
Reference in New Issue
Block a user