fix first time runner regist

This commit is contained in:
nimesulide
2025-11-20 15:31:20 +08:00
repo.diff.parent 840c600073
repo.diff.commit f6772611e6

repo.diff.view_file

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