mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## 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