fix: Increase systemctl operation timeout (#9281)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 4s

This commit is contained in:
ssongliu 2025-06-25 16:21:22 +08:00 committed by GitHub
parent 73930c5e29
commit 6aaf61cde4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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'),
};