mirror of https://github.com/langgenius/dify.git
Remove worker idle/active callbacks that caused severe lock contention. Instead, use sampling-based monitoring where worker states are queried on-demand during scaling decisions. This eliminates the performance bottleneck caused by workers acquiring locks 10+ times per second. Changes: - Remove callback parameters from Worker class - Add properties to expose worker idle state directly - Update WorkerPool to query worker states without callbacks - Maintain scaling functionality with better performance |
||
|---|---|---|
| .. | ||
| command_channels | ||
| command_processing | ||
| domain | ||
| entities | ||
| error_handling | ||
| event_management | ||
| graph_traversal | ||
| layers | ||
| orchestration | ||
| protocols | ||
| response_coordinator | ||
| state_management | ||
| worker_management | ||
| __init__.py | ||
| graph_engine.py | ||
| manager.py | ||
| worker.py | ||