fix(tasks): 任务队列 - 限制缓存回源并修复并发租约与过期写入
This commit is contained in:
1 parent
1ff5e5cada
commit
bf0c4454fa
23 files changed
+1098
-59
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user