fix(tasks): 任务队列 - 限制缓存回源并修复并发租约与过期写入

This commit is contained in:
ddCat committed 2026-09-06 00:28:45 +08:00
1 parent 1ff5e5cada
commit bf0c4454fa
23 files changed
+1098 -59

No files matched your search

+6
View File
@@ -56,6 +56,12 @@ type Service struct {
workers *workerRuntime
updateManager UpdateManager
mailSender func(emailSettingValue, string, string, string) error
readCachesOnce sync.Once
concurrencyReadCache *boundedReadCache[string, RuntimeTaskPolicy]
textReplayReadCache *boundedReadCache[textReplayCacheKey, *TextReplayResult]
routeVersionReadCache *boundedReadCache[string, int64]
routeCatalogRetryAt time.Time
routeCatalogRefreshError error
}
const taskWorkerConcurrency = 3