Skip to content

Commit a827428

Browse files
committed
fix frankenphp_ready_workers
1 parent b6deb09 commit a827428

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

threadworker.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ func setupWorkerScript(handler *workerThread, worker *worker) {
7878
handler.backoff.wait()
7979
metrics.StartWorker(worker.name)
8080

81+
if handler.state.is(stateReady) {
82+
metrics.ReadyWorker(handler.worker.name)
83+
}
84+
8185
// Create a dummy request to set up the worker
8286
fc, err := newDummyContext(
8387
filepath.Base(worker.fileName),

0 commit comments

Comments
 (0)