File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ func TestMaxWaitTimeWorker(t *testing.T) {
915915
916916 expectedMetrics := `
917917 # TYPE frankenphp_worker_queue_depth gauge
918- frankenphp_worker_queue_depth{worker="service"} 9
918+ frankenphp_worker_queue_depth{worker="service"} 0
919919 `
920920
921921 ctx := caddy .ActiveContext ()
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ func (worker *worker) handleRequest(fc *frankenPHPContext) {
217217 case scaleChan <- fc :
218218 // the request has triggered scaling, continue to wait for a thread
219219 case <- timeoutChan (maxWaitTime ):
220- // metrics.DequeuedWorkerRequest(worker.name)
220+ metrics .DequeuedWorkerRequest (worker .name )
221221 // the request has timed out stalling
222222 fc .reject (504 , "Gateway Timeout" )
223223 return
You can’t perform that action at this time.
0 commit comments