fix(*): 平台稳定性 - 修复会话隔离、运行时缓存与部署镜像更新链路
This commit is contained in:
1 parent
88abdd1b75
commit
e77c26d2b0
32 files changed
+788
-116
No files matched your search
@@ -28,10 +28,11 @@ func (nopHost) ChannelConcurrencyLimit(string) (int, error) {
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
repo *repository.Repository
|
||||
host Host
|
||||
Coordinator *Coordinator
|
||||
concurrencyCache *BoundedReadCache[string, RuntimeTaskPolicy]
|
||||
repo *repository.Repository
|
||||
host Host
|
||||
Coordinator *Coordinator
|
||||
concurrencyCache *BoundedReadCache[string, RuntimeTaskPolicy]
|
||||
runtimePolicyCache *BoundedReadCache[string, RuntimePolicySetting]
|
||||
}
|
||||
|
||||
func New(repo *repository.Repository, coordinator *Coordinator, host Host) *Service {
|
||||
@@ -39,10 +40,11 @@ func New(repo *repository.Repository, coordinator *Coordinator, host Host) *Serv
|
||||
host = nopHost{}
|
||||
}
|
||||
return &Service{
|
||||
repo: repo,
|
||||
host: host,
|
||||
Coordinator: coordinator,
|
||||
concurrencyCache: NewBoundedReadCache[string, RuntimeTaskPolicy](1, 1024, 1, 2*time.Second),
|
||||
repo: repo,
|
||||
host: host,
|
||||
Coordinator: coordinator,
|
||||
concurrencyCache: NewBoundedReadCache[string, RuntimeTaskPolicy](1, 1024, 1, 2*time.Second),
|
||||
runtimePolicyCache: NewBoundedReadCache[string, RuntimePolicySetting](1, 8192, 1, 2*time.Second),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user