Commits
Click on a commit to change the comparison rangefix: serialize concurrency acquisition requests when requesting lease-based concurrency
Adds ConcurrencySlotAcquisitionWithLeaseService to serialize acquisition
attempts for lease-based concurrency limits. This prevents concurrent retry
attempts when multiple tasks wait for available slots.
The service uses a singleton pattern (one instance per unique set of limit
names) with a single-threaded queue to process acquisition requests serially.
This matches the pattern used by ConcurrencySlotAcquisitionService for
non-lease-based concurrency.
Benefits:
- Prevents thundering herd when many tasks retry simultaneously
- Reduces unnecessary API load
- Improves slot acquisition efficiency
- Adds limit names to debug logging for easier troubleshooting
Related to ENGPAR-11
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>2 days ago
by bunchesofdonald