MCPcopy Index your code
hub / github.com/php/frankenphp / drainAutoScaling

Function drainAutoScaling

scaling.go:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func drainAutoScaling() {
57 scalingMu.Lock()
58
59 if globalLogger.Enabled(globalCtx, slog.LevelDebug) {
60 globalLogger.LogAttrs(globalCtx, slog.LevelDebug, "shutting down autoscaling", slog.Int("autoScaledThreads", len(autoScaledThreads)))
61 }
62
63 scalingMu.Unlock()
64}
65
66func addRegularThread() (*phpThread, error) {
67 thread := getInactivePHPThread()

Callers 1

ShutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected