Fix TestTaskConcurrencyLimits tests for refactored task engine
Updates test assertions to match the refactored task engine implementation:
- Changed from positional to keyword argument expectations (names=...)
- Updated no-tags tests to expect concurrency calls with empty names list
- Added proper context manager mock setup for all tests
All tests in TestTaskConcurrencyLimits now pass with the new keyword-only
concurrency function calls in the task engine.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
fix: add pagination support to Redis lease storage implementation
- Update Redis read_active_lease_ids to support offset parameter
- Add comprehensive pagination tests for Redis storage
- Ensure consistency with memory and filesystem implementations
This completes the pagination support across all three storage backends.
fix: address concurrency adapter feedback - bulk operations and upfront checks
- Check all zero limits upfront before acquiring any slots
- Use true bulk operations for V2 limit acquisition (single call)
- Optimize decrement to use bulk reads and bulk decrements
- Fix batching in lease search (no offset support in read_active_lease_ids)
These changes prevent partial acquisitions and reduce rollback complexity
as identified in review feedback.