From 6aaf61cde49884c798f0dfee5b297029faabd035 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 25 Jun 2025 16:21:22 +0800 Subject: [PATCH] fix: Increase systemctl operation timeout (#9281) --- backend/utils/systemctl/handle.go | 2 +- frontend/src/views/container/repo/operator/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/utils/systemctl/handle.go b/backend/utils/systemctl/handle.go index 47c81b7ae..471f8d2a1 100644 --- a/backend/utils/systemctl/handle.go +++ b/backend/utils/systemctl/handle.go @@ -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) diff --git a/frontend/src/views/container/repo/operator/index.vue b/frontend/src/views/container/repo/operator/index.vue index 54c3e0457..3fa195e04 100644 --- a/frontend/src/views/container/repo/operator/index.vue +++ b/frontend/src/views/container/repo/operator/index.vue @@ -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'), };