Skip to content

Commit 85d1c67

Browse files
committed
Fix starting/stopping servers
1 parent 9b3dd8f commit 85d1c67

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
@@ -311,6 +311,18 @@ jobs:
311311
312312
echo "✅ Benchmark suite completed successfully"
313313
314+
- name: Stop Core production server
315+
if: env.RUN_CORE && always()
316+
run: |
317+
echo "🛑 Stopping Core production server..."
318+
# Find and kill the Puma process on port 3001
319+
if lsof -ti:3001 > /dev/null 2>&1; then
320+
kill "$(lsof -ti:3001)" || true
321+
echo "✅ Server stopped"
322+
else
323+
echo "ℹ️ No server running on port 3001"
324+
fi
325+
314326
- name: Validate Core benchmark results
315327
if: env.RUN_CORE
316328
run: |
@@ -463,6 +475,18 @@ jobs:
463475
464476
echo "✅ Benchmark suite completed successfully"
465477
478+
- name: Stop Pro production server
479+
if: env.RUN_PRO && always()
480+
run: |
481+
echo "🛑 Stopping Pro production server..."
482+
# Find and kill the Puma process on port 3001
483+
if lsof -ti:3001 > /dev/null 2>&1; then
484+
kill "$(lsof -ti:3001)" || true
485+
echo "✅ Server stopped"
486+
else
487+
echo "ℹ️ No server running on port 3001"
488+
fi
489+
466490
- name: Validate Pro benchmark results
467491
if: env.RUN_PRO
468492
run: |

0 commit comments

Comments
 (0)