Files
Prathyush PV 264a483cd5 Stop the SDK workers and clients the worker service starts (#11436)
## What changed?

`parentclosepolicy.Processor` and `scanner.Scanner` keep a reference to
the SDK workers they start and stop them on shutdown, and the batch
activity closes the SDK client it creates per execution. The SDK worker
goleak ignores go with them.

## Why?

Neither component kept a reference before, so nothing could stop the
workers and their pollers ran until the process exited. The batcher
leaked a client reference per activity execution, so that one
accumulated per server process rather than per cluster.

Part of removing the TODO ignores in `tests/leakcheck/leak_test.go` (see
#11322).

## How did you test it?
- [x] built
- [x] covered by existing tests
2026-08-11 17:18:55 -07:00
..