()
| 54 | } |
| 55 | |
| 56 | func 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 | |
| 66 | func addRegularThread() (*phpThread, error) { |
| 67 | thread := getInactivePHPThread() |