From 9eb863e96411f2827b57c5f7d4579ab30cb836f2 Mon Sep 17 00:00:00 2001 From: Debanjum Date: Thu, 12 Dec 2024 11:28:54 -0800 Subject: [PATCH] Restart code sandbox on crash in eval github workflow --- .github/workflows/run_evals.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_evals.yml b/.github/workflows/run_evals.yml index dc8c89b7..c3a2da09 100644 --- a/.github/workflows/run_evals.yml +++ b/.github/workflows/run_evals.yml @@ -113,7 +113,8 @@ jobs: khoj --anonymous-mode --non-interactive & # Start code sandbox - npm run dev --prefix terrarium & + npm install -g pm2 + pm2 start src/index.ts --interpreter ts-node --exp-backoff-restart-delay=100 --name sandbox --cwd terrarium # Wait for server to be ready timeout=120