mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-29 02:38:45 +08:00
feat: add timeout for app upgrade (#10132)
This commit is contained in:
parent
47e60bfdcb
commit
b2b578a5f0
1 changed files with 1 additions and 1 deletions
|
|
@ -836,7 +836,7 @@ func upgradeInstall(req request.AppInstallUpgrade) error {
|
|||
}
|
||||
}
|
||||
|
||||
upgradeTask.AddSubTask(task.GetTaskName(install.Name, task.TaskScopeApp, task.TaskUpgrade), upgradeApp, rollBackApp)
|
||||
upgradeTask.AddSubTaskWithOps(task.GetTaskName(install.Name, task.TaskScopeApp, task.TaskUpgrade), upgradeApp, rollBackApp, 0, 1*time.Hour)
|
||||
|
||||
go func() {
|
||||
err = upgradeTask.Execute()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue