Skip to content

Commit a175f08

Browse files
committed
Fix starting/stopping servers
1 parent 2f658c5 commit a175f08

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
@@ -300,6 +300,18 @@ jobs:
300300
301301
echo "✅ Benchmark suite completed successfully"
302302
303+
- name: Stop Core production server
304+
if: env.RUN_CORE && always()
305+
run: |
306+
echo "🛑 Stopping Core production server..."
307+
# Find and kill the Puma process on port 3001
308+
if lsof -ti:3001 > /dev/null 2>&1; then
309+
kill $(lsof -ti:3001) || true
310+
echo "✅ Server stopped"
311+
else
312+
echo "ℹ️ No server running on port 3001"
313+
fi
314+
303315
- name: Validate Core benchmark results
304316
if: env.RUN_CORE
305317
run: |
@@ -452,6 +464,18 @@ jobs:
452464
453465
echo "✅ Benchmark suite completed successfully"
454466
467+
- name: Stop Pro production server
468+
if: env.RUN_PRO && always()
469+
run: |
470+
echo "🛑 Stopping Pro production server..."
471+
# Find and kill the Puma process on port 3001
472+
if lsof -ti:3001 > /dev/null 2>&1; then
473+
kill $(lsof -ti:3001) || true
474+
echo "✅ Server stopped"
475+
else
476+
echo "ℹ️ No server running on port 3001"
477+
fi
478+
455479
- name: Validate Pro benchmark results
456480
if: env.RUN_PRO
457481
run: |

0 commit comments

Comments
 (0)