为什么:恢复此前只有"失败自动回滚",没有手动按版本恢复;失败作业也只能重发封存。
- 迁移 000068 允许 kind=restore;POST /library/restores(管理员 + 该快照恢复授权 + 闸口)。
- POST /library/jobs/{id}/resume 对失败/取消的同步/恢复作业按原参数续作。
- worker 统一 runLibraryRelease,同步与恢复共用链路;成功后登记 production_effective 版本。
This commit is contained in:
@@ -29,6 +29,8 @@ type LibraryJobKind string
|
||||
const (
|
||||
LibraryJobSeal LibraryJobKind = "seal"
|
||||
LibraryJobSync LibraryJobKind = "sync"
|
||||
// LibraryJobRestore 是按指定整库版本恢复:与同步分开,授权与阶段也独立。
|
||||
LibraryJobRestore LibraryJobKind = "restore"
|
||||
)
|
||||
|
||||
type LibraryJobState string
|
||||
|
||||
Reference in New Issue
Block a user