mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
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. |
||
|---|---|---|
| .. | ||
| daytona_sandbox.py | ||
| dify_simple_sandbox.py | ||
| docker_daemon_sandbox.py | ||
| e2b_sandbox.py | ||
| local_without_isolation.py | ||