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

Function startDownScalingThreads

scaling.go:197–206  ·  view source on GitHub ↗
(done chan struct{})

Source from the content-addressed store, hash-verified

195}
196
197func startDownScalingThreads(done chan struct{}) {
198 for {
199 select {
200 case <-done:
201 return
202 case <-time.After(downScaleCheckTime):
203 deactivateThreads()
204 }
205 }
206}
207
208// deactivateThreads checks all threads and removes those that have been inactive for too long
209func deactivateThreads() {

Callers 1

initAutoScalingFunction · 0.85

Calls 1

deactivateThreadsFunction · 0.85

Tested by

no test coverage detected