mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-15 02:04:46 +08:00
feat: OneDrive 增加 Token 刷新机制 (#3638)
This commit is contained in:
parent
d30be34def
commit
5152e7b8d5
@ -576,6 +576,11 @@ func (u *SnapshotService) HandleSnapshot(isCronjob bool, req dto.SnapshotCreate,
|
|||||||
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusFailed})
|
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusFailed})
|
||||||
return loadLogByStatus(snapStatus), snap.Name, fmt.Errorf("snapshot %s backup failed", snap.Name)
|
return loadLogByStatus(snapStatus), snap.Name, fmt.Errorf("snapshot %s backup failed", snap.Name)
|
||||||
}
|
}
|
||||||
|
snapPanelData(itemHelper, localDir, backupPanelDir)
|
||||||
|
if snapStatus.PanelData != constant.StatusDone {
|
||||||
|
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusFailed})
|
||||||
|
return loadLogByStatus(snapStatus), snap.Name, fmt.Errorf("snapshot %s 1panel data failed", snap.Name)
|
||||||
|
}
|
||||||
snapCompress(itemHelper, rootDir)
|
snapCompress(itemHelper, rootDir)
|
||||||
if snapStatus.Compress != constant.StatusDone {
|
if snapStatus.Compress != constant.StatusDone {
|
||||||
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusFailed})
|
_ = snapshotRepo.Update(snap.ID, map[string]interface{}{"status": constant.StatusFailed})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user