- 同作业号重跑读持久日志+已封存清单按首次请求重放(source_read=false, writers_stopped=false),换范围/绑定库或清单校验失败即拒绝 - 归档用量按跨版本去重统计内容字节,清单/未引用 blob/实际分配单列, 不再用各版本 unique 之和冒充归档占用 - 冻结窗口内复核来源契约,不一致即中止;拒绝组外同镜像运行容器 - 补齐整库只读接口的 OpenAPI 契约 - 按用户确认取消 A06:文档/页面/接口不再把效果测试列为封版门槛
This commit is contained in:
@@ -129,6 +129,25 @@ func (c *Coordinator) Recover(ctx context.Context) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Inspect reports the persisted result of a job, if this coordinator ever ran it.
|
||||
// A caller which re-uses a job ID needs the original request identity (time,
|
||||
// scope, knowledge base, contract) to replay idempotently instead of guessing a
|
||||
// fresh one, which would be rejected as a conflicting request.
|
||||
func (c *Coordinator) Inspect(job string) (Result, bool, error) {
|
||||
if !validID(job) {
|
||||
return Result{}, false, errors.New("invalid freeze job id")
|
||||
}
|
||||
j, err := c.load(job)
|
||||
if errors.Is(err, os.ErrNotExist) {
|
||||
return Result{}, false, nil
|
||||
}
|
||||
if err != nil {
|
||||
return Result{}, false, err
|
||||
}
|
||||
return j.Result, true, nil
|
||||
}
|
||||
|
||||
func invokeCapture(ctx context.Context, capture func(context.Context) (string, error)) (id string, err error) {
|
||||
defer func() {
|
||||
if recover() != nil {
|
||||
|
||||
Reference in New Issue
Block a user