Skip to content

Commit f2f5cb3

Browse files
committed
Fix starting/stopping servers
1 parent e94d4e0 commit f2f5cb3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,18 @@ jobs:
295295
296296
echo "✅ Benchmark suite completed successfully"
297297
298+
- name: Stop Core production server
299+
if: env.RUN_CORE && always()
300+
run: |
301+
echo "🛑 Stopping Core production server..."
302+
# Find and kill the Puma process on port 3001
303+
if lsof -ti:3001 > /dev/null 2>&1; then
304+
kill $(lsof -ti:3001) || true
305+
echo "✅ Server stopped"
306+
else
307+
echo "ℹ️ No server running on port 3001"
308+
fi
309+
298310
- name: Validate Core benchmark results
299311
if: env.RUN_CORE
300312
run: |
@@ -447,6 +459,18 @@ jobs:
447459
448460
echo "✅ Benchmark suite completed successfully"
449461
462+
- name: Stop Pro production server
463+
if: env.RUN_PRO && always()
464+
run: |
465+
echo "🛑 Stopping Pro production server..."
466+
# Find and kill the Puma process on port 3001
467+
if lsof -ti:3001 > /dev/null 2>&1; then
468+
kill $(lsof -ti:3001) || true
469+
echo "✅ Server stopped"
470+
else
471+
echo "ℹ️ No server running on port 3001"
472+
fi
473+
450474
- name: Validate Pro benchmark results
451475
if: env.RUN_PRO
452476
run: |

0 commit comments

Comments
 (0)