0.1.8 #21
No reviewers
Labels
No labels
Epic
Feature Request
HOLD
audit
automerge
bug
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
release
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NiXTheDev/regexYbot!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's New in 0.1.8
🚀 Worker Pool V2: Dynamic Scaling
The bot now features an optional Worker Pool V2 with intelligent dynamic scaling:
WORKER_POOL_V2_ENABLED- Enable V2 (default: false)WORKER_POOL_MIN_WORKERS- Minimum workers to keep (default: 0)WORKER_POOL_MAX_WORKERS- Maximum workers allowed (default: 8)WORKER_POOL_INITIAL_WORKERS- Workers to spawn on startup (default: 1)WORKER_POOL_IDLE_TIMEOUT_MS- Idle timeout before scaling down (default: 15 min)WORKER_POOL_IDLE_CHECK_INTERVAL_MS- How often to check for idle workers (default: 5 min)🛑 Graceful Shutdown Enhancement
New graceful drain option for Docker deployments:
GRACEFUL_DRAIN- Enable graceful drain (default: false for safety)GRACEFUL_DRAIN_TIMEOUT_MS- Max time to drain queue (default: 8000ms, max: 9500ms for Docker compatibility)🧪 Testing Improvements
docker/test-graceful-shutdown.sh)📝 Documentation
stop_grace_periodconfiguration.env.examplewith all new configuration options🔧 Other Improvements
src/directory for better organization🐛 Bug Fixes
hellspawn.ts🏗️ Infrastructure
📋 Breaking Changes
None. All changes are backward compatible. Worker Pool V2 is opt-in via
WORKER_POOL_V2_ENABLED=false(default).📁 Files Changed
src/workerPoolV2.ts- Dynamic worker pool implementationsrc/workerPoolInterface.ts- Common interface for worker poolssrc/tests/workerPoolV2.test.ts- Test suitedocker/test-graceful-shutdown.sh- Docker test scriptsrc/config.ts- New configuration optionssrc/index.ts- Graceful shutdown integrationsrc/workerPool.ts- Added monitoring methodsREADME.md- Documentation updates.env.example- Configuration examplesdocker/docker-compose.yml- Graceful drain examples✅ Checklist
Full Changelog: dev...release