feat: centralize command execution timeout constant for sandbox providers

This commit is contained in:
Harry
2026-02-14 16:01:12 +08:00
parent 5cfb3d70e1
commit dd8385abf1
3 changed files with 25 additions and 13 deletions

View 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