mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-11 16:06:02 +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")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), defaultCommandTimeout)
|
||||
defer cancel()
|
||||
|
||||
cmdArgs, err := manager.BuildCommand(action, h.config)
|
||||
|
|
|
@ -152,7 +152,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
|
|||
return;
|
||||
}
|
||||
let params = {
|
||||
header: i18n.global.t('container.createRepo'),
|
||||
header: i18n.global.t('container.imageRepo'),
|
||||
operationInfo: i18n.global.t('container.createRepoHelper'),
|
||||
submitInputInfo: i18n.global.t('database.restartNow'),
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue