mirror of
https://github.com/langgenius/dify.git
synced 2026-02-14 01:00:52 -05: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.