From f6772611e680f544a85e7add1b149d04805b55ea Mon Sep 17 00:00:00 2001 From: nimesulide Date: Thu, 20 Nov 2025 15:31:20 +0800 Subject: [PATCH] fix first time runner regist --- routers/install/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/install/install.go b/routers/install/install.go index a7bf63f45d..99eaf646fa 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -639,6 +639,8 @@ func SubmitInstall(ctx *context.Context) { } } + runners_service.RegistGlobalRunner(ctx) + setting.ClearEnvConfigKeys() log.Info("First-time run install finished!") InstallDone(ctx) @@ -656,8 +658,6 @@ func SubmitInstall(ctx *context.Context) { return } } - runners_service.RegistGlobalRunner(otherCtx) - // Now get the http.Server from this request and shut it down // NB: This is not our hammerable graceful shutdown this is http.Server.Shutdown srv := ctx.Value(http.ServerContextKey).(*http.Server)