dify/api/core/virtual_environment/__base
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
..
command_future.py refactor: replace threading with gevent primitives for cooperative scheduling 2026-01-28 13:29:53 +08:00
entities.py fix(dify_cli): solve the permission error on e2b 2026-01-21 01:25:21 +08:00
exec.py fix(dify_cli): solve the permission error on e2b 2026-01-21 01:25:21 +08:00
helpers.py feat(zip-sandbox): special use of sandbox implementation 2026-01-27 14:19:27 +08:00
virtual_environment.py refactor(sandbox): sandbox provider system default configuration 2026-01-16 18:22:44 +08:00