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 |
||
|---|---|---|
| .. | ||
| docs | ||
| entities | ||
| graph | ||
| graph_engine | ||
| graph_events | ||
| node_events | ||
| nodes | ||
| repositories | ||
| utils | ||
| __init__.py | ||
| constants.py | ||
| conversation_variable_updater.py | ||
| enums.py | ||
| errors.py | ||
| system_variable.py | ||
| variable_loader.py | ||
| workflow_cycle_manager.py | ||
| workflow_entry.py | ||
| workflow_type_encoder.py | ||