mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What Move poll cancellation fan-out from frontend to matching. Frontend sends one RPC to matching root partition; matching root does flat fan-out — computes all partitions, groups by host, sends one `CancelOutstandingWorkerPollsPartition` RPC per remote host. Local partitions are processed directly (no self-RPC). ## Why Avoids frontend needing to know about partition topology. Enables host-level batching (one RPC per host instead of one per partition), and ensures `removePollerFromHistory` runs for all co-located partitions. ## How did you test it? - Unit tests: flat fan-out groups partitions by host correctly, local partitions handled without RPC, remote host errors don't block other hosts, fallback to individual RPCs when routing client unavailable - Partition API tests: empty partitions/workers, cancel + shutdown cache population - Functional test: `TestShutdownWorkerCancelsOutstandingPolls` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>