Skip to content

Commit

Permalink
fix(workflow): update benchmark server start and stop commands
Browse files Browse the repository at this point in the history
Update the command to start `ledger serve` without using `systemctl`.
Add a command to kill the server process after benchmarking.
  • Loading branch information
flemzord committed Oct 10, 2024
1 parent 476403e commit 493644c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fetch-depth: 0
- run: go build -o /tmp/ledger ./
- run: echo "running actions as ${USER}"
- run: sudo systemctl restart ledger
- run: /tmp/ledger serve --postgres-uri=postgres://formance:[email protected]/ledger --postgres-conn-max-idle-time=120s --postgres-max-open-conns=500 --postgres-max-idle-conns=100 &
- run: >
earthly
--allow-privileged
Expand All @@ -29,6 +29,7 @@ jobs:
--allow-privileged
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
./test/performance+generate-graphs
- run: kill -9 $(ps aux | grep "ledger serve"| grep -v "grep" | awk '{print $2}')
- uses: actions/upload-artifact@v4
with:
name: graphs
Expand Down

0 comments on commit 493644c

Please sign in to comment.