dify/api/core/sandbox
Harry 27781d6b7e refactor: replace threading with gevent primitives for cooperative scheduling
Updated multiple modules to utilize gevent for concurrency, ensuring compatibility with gevent-based WSGI servers. This includes replacing threading.Thread and threading.Event with gevent.spawn and gevent.event.Event, respectively, to prevent blocking and improve performance during I/O operations.

- Refactored SandboxBuilder, Sandbox, CommandFuture, and DockerDemuxer to use gevent.
- Added detailed docstrings explaining the changes and benefits of using gevent primitives.

This change enhances the responsiveness and efficiency of the application in a gevent environment.
2026-01-28 13:29:53 +08:00
..
bash feat(dify-cli): session level tool white list 2026-01-27 14:19:26 +08:00
entities feat(sandbox): add file extension attribute to SandboxFileNode and update related logic 2026-01-27 15:58:14 +08:00
initializer refactor(download): replace wget with curl for asset and archive downloads 2026-01-27 15:14:07 +08:00
inspector feat(sandbox): restructure file handling by introducing a new inspector module with runtime and archive sources 2026-01-27 19:11:52 +08:00
security feat(sandbox): artifact browser 2026-01-26 14:13:36 +08:00
services fix(asset_download_service): suppress error output during download command execution 2026-01-23 17:06:11 +08:00
storage feat(sandbox): restructure file handling by introducing a new inspector module with runtime and archive sources 2026-01-27 19:11:52 +08:00
utils feat(sandbox): add AppAssetsInitializer and refactor VMFactory to VMBuilder 2026-01-15 00:13:52 +08:00
__init__.py feat(sandbox-zip-service): using sandbox to zip files 2026-01-27 14:19:27 +08:00
builder.py refactor: replace threading with gevent primitives for cooperative scheduling 2026-01-28 13:29:53 +08:00
manager.py feat(sandbox-zip-service): using sandbox to zip files 2026-01-27 14:19:27 +08:00
sandbox.py refactor: replace threading with gevent primitives for cooperative scheduling 2026-01-28 13:29:53 +08:00