From daef59b56888c42de40a27f5b5ca772abbd7bd29 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 12 Jun 2025 22:48:41 +0800 Subject: [PATCH] fix: The snapshot increases the number of retries (#9045) Refs #9026 --- agent/app/service/snapshot.go | 2 +- agent/app/service/snapshot_create.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/app/service/snapshot.go b/agent/app/service/snapshot.go index 36dedd855..65a56e262 100644 --- a/agent/app/service/snapshot.go +++ b/agent/app/service/snapshot.go @@ -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": diff --git a/agent/app/service/snapshot_create.go b/agent/app/service/snapshot_create.go index a014c7977..375eb8e3f 100644 --- a/agent/app/service/snapshot_create.go +++ b/agent/app/service/snapshot_create.go @@ -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 }