waitForWorkerTCP connects to a worker over TCP and verifies its health.
(addr, bearerToken string, serverCertPEM []byte, timeout time.Duration)
| 490 | p.mu.Unlock() |
| 491 | // The slot row (if any) stays in spawning state; the janitor's |
| 492 | // stale-spawning sweep reconciles it, same as a failed spawn below. |
| 493 | return nil, fmt.Errorf("pool is shutting down") |
| 494 | } |
| 495 | p.spawning++ |
| 496 | p.mu.Unlock() |
| 497 | err = p.spawnWorker(ctx, id, assignment.Image, profile, false) |
no test coverage detected