执行时真实时钟与持久授权回读(撤销/过期即停并保留预备份)、写集合写前落盘、 租约与 attempt 身份、恢复队列与原发送身份分离、成功收尾必须释放维护后再登记终态。
This commit is contained in:
@@ -167,7 +167,11 @@ type Config struct {
|
||||
LibraryAgentSocket string
|
||||
// LibrarySourceProject 是执行器应指向的实例名(agent -project,封存源)。
|
||||
// 与它不一致时按"封错库"处理:不可发起,并说明差在哪。
|
||||
LibrarySourceProject string
|
||||
LibrarySourceProject string
|
||||
LibrarySourceApp string
|
||||
LibrarySourceTenantID uint64
|
||||
LibrarySourceInternalKB string
|
||||
LibrarySourceExternalKB string
|
||||
// LibraryExecutorStatusMaxAge 是执行器观测的有效期;超过即"无法确认"。
|
||||
LibraryExecutorStatusMaxAge time.Duration
|
||||
// LibraryCapacityBudgetBytes 是整库归档容量预算;0 = 未设置(容量门禁不放行)。
|
||||
@@ -449,6 +453,9 @@ func NewHandler(config Config) (http.Handler, error) {
|
||||
librarySnapshotDetail(w, r, config)
|
||||
})
|
||||
// 页面发起封存:只投递作业(主机侧 agent 执行),并回读作业真实状态。
|
||||
mux.HandleFunc("POST /api/v1/library/source-associations", func(w http.ResponseWriter, r *http.Request) {
|
||||
libraryLegacySourceBind(w, r, config)
|
||||
})
|
||||
mux.HandleFunc("POST /api/v1/library/captures", func(w http.ResponseWriter, r *http.Request) {
|
||||
libraryCaptureEnqueue(w, r, config)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user