mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-12 00:16:37 +08:00
fix: Increase systemctl operation timeout (#9281)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s
This commit is contained in:
parent
73930c5e29
commit
6aaf61cde4
2 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ func (h *ServiceHandler) executeAction(action, successMsg string) (ServiceResult
|
||||||
return ServiceResult{}, fmt.Errorf("service manager not initialized")
|
return ServiceResult{}, fmt.Errorf("service manager not initialized")
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), defaultCommandTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
cmdArgs, err := manager.BuildCommand(action, h.config)
|
cmdArgs, err := manager.BuildCommand(action, h.config)
|
||||||
|
|
|
@ -152,7 +152,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let params = {
|
let params = {
|
||||||
header: i18n.global.t('container.createRepo'),
|
header: i18n.global.t('container.imageRepo'),
|
||||||
operationInfo: i18n.global.t('container.createRepoHelper'),
|
operationInfo: i18n.global.t('container.createRepoHelper'),
|
||||||
submitInputInfo: i18n.global.t('database.restartNow'),
|
submitInputInfo: i18n.global.t('database.restartNow'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue