mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
feat: centralize command execution timeout constant for sandbox providers
This commit is contained in:
10
api/core/virtual_environment/constants.py
Normal file
10
api/core/virtual_environment/constants.py
Normal file
@ -0,0 +1,10 @@
|
||||
"""
|
||||
Constants for virtual environment providers.
|
||||
|
||||
Centralizes timeout and other configuration values used across different sandbox providers
|
||||
(E2B, SSH, Docker) to ensure consistency and ease of maintenance.
|
||||
"""
|
||||
|
||||
# Command execution timeout in seconds (5 hours)
|
||||
# Used by providers to limit how long a single command can run
|
||||
COMMAND_EXECUTION_TIMEOUT_SECONDS = 5 * 60 * 60 # 18000 seconds
|
||||
Reference in New Issue
Block a user