fix: The snapshot increases the number of retries (#9045)

Refs #9026
This commit is contained in:
ssongliu 2025-06-12 22:48:41 +08:00 committed by GitHub
parent be2c30c9e0
commit daef59b568
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -326,7 +326,7 @@ func loadPanelFile(fileOp fileUtils.FileOp) ([]dto.DataTree, error) {
switch itemData.Label {
case "agent", "runtime", "docker", "task", "geo", "secret", "uploads":
itemData.IsDisable = true
case "clamav", "download", "resource":
case "clamav", "download":
panelPath := path.Join(global.Dir.DataDir, itemData.Label)
itemData.Children, _ = loadFile(panelPath, 3, fileOp)
case "apps", "backup", "log", "db", "tmp":

View file

@ -76,7 +76,7 @@ func (u *SnapshotService) SnapshotCreate(parentTask *task.Task, req dto.Snapshot
}
if jobID == 0 {
go func() {
_ = handleSnapshot(req, taskItem, jobID, 0, 0)
_ = handleSnapshot(req, taskItem, jobID, 3, 0)
}()
return nil
}