wip: go embedded worker

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2025-06-06 16:16:26 +02:00
parent 40dbac7a65
commit 5acdd67cba
5 changed files with 68 additions and 129 deletions

View File

@ -27,7 +27,6 @@ import (
"goauthentik.io/internal/utils"
"goauthentik.io/internal/utils/web"
"goauthentik.io/internal/web/brand_tls"
"goauthentik.io/internal/worker"
)
const (
@ -47,7 +46,6 @@ type WebServer struct {
g *gounicorn.GoUnicorn
gunicornReady bool
worker *worker.Worker
mainRouter *mux.Router
loggingRouter *mux.Router
log *log.Entry
@ -172,7 +170,6 @@ func (ws *WebServer) Start() {
go ws.runMetricsServer()
go ws.attemptStartBackend()
go ws.attemptStartWorker()
go ws.listenPlain()
go ws.listenTLS()
}
@ -202,12 +199,6 @@ func (ws *WebServer) attemptStartBackend() {
}
}
func (ws *WebServer) attemptStartWorker() {
if ws.worker == nil {
return
}
}
func (ws *WebServer) Core() *gounicorn.GoUnicorn {
return ws.g
}