mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
- Enhanced the SandboxManager to use a sharded locking mechanism for improved concurrency and performance. - Replaced the global lock with shard-specific locks, allowing for lock-free reads and reducing contention. - Updated methods for registering, retrieving, unregistering, and counting sandboxes to work with the new sharded structure. - Improved documentation within the class to clarify the purpose and functionality of the sharding approach. |
||
|---|---|---|
| .. | ||
| __base | ||
| channel | ||
| providers | ||
| factory.py | ||
| sandbox_manager.py | ||