Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change API timeout (for non Cloud Run deployment)

Tomas Valentadae3a9ea44c6
diff --git a/api-service/start.sh b/api-service/start.sh
index 300fcabad..50612f81a 100755
--- a/api-service/start.sh
+++ b/api-service/start.sh
@@ -4,7 +4,7 @@
cd /playground && exec node lib/server.js &
# Start python app
-cd /app && exec poetry run gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 12 --timeout 0 app:app -k uvicorn.workers.UvicornWorker &
+cd /app && exec poetry run gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 12 --timeout 120 app:app -k uvicorn.workers.UvicornWorker &
# Wait for any process to exit
wait -n