You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --count parameter for batch forced actions
This release adds support for batch operations on multiple nodes without
delays between each operation, enabling efficient bulk management.
Features:
- Add --count parameter supporting add, remove, start, stop, upgrade actions
- Smart node selection using age field for consistent ordering
- Batch operations run sequentially without delays
- Graceful handling when count exceeds available nodes
Implementation:
- Updated config.py to add --count parameter with default of 1
- Enhanced executor.py methods to support count parameter
- Updated __main__.py to pass count from options to executor
- Maintains backward compatibility with single-node operations
Node selection logic:
- add: Creates N new nodes immediately
- remove/stop: Selects N youngest nodes (highest age values first)
- start/upgrade: Selects N oldest nodes (lowest age values first)
Testing:
- Added comprehensive test suite (7 new tests) for count parameter
- Updated test fixtures to use production node naming (antnode0001.service)
- Removed test-specific logic from executor for cleaner code
- All 56 tests passing
Version: 0.0.10
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>