fix(cluster): 绑定 Agent 中转产物到备份记录

This commit is contained in:
Awuqing
2026-08-07 20:54:57 +08:00
parent c2805da6df
commit 755632e19b
5 changed files with 203 additions and 35 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ func (e *Executor) ExecuteRunTask(ctx context.Context, taskID, recordID uint) er
}
fileName := filepath.Base(finalPath)
fileSize := info.Size()
storagePath := backup.BuildStorageKey(spec.Type, startedAt, fileName)
storagePath := backup.BuildRecordStorageKey(spec.Type, startedAt, recordID, fileName)
// 5) 计算 checksum(一次读一次)并上传到所有目标
checksum, err := computeFileSHA256(finalPath)