Skip to content

Commit

Permalink
edit benchmark workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
artgish committed Apr 17, 2023
1 parent 10ad08d commit 00ec0c4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deeplake-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ jobs:
bash scripts/complete_benchmark.sh
if [ "{{ vars.BENCHMARKS_DEFAULT_RUNNERS_TYPE }}"" == 'self-hosted-ec2' ]
then
self_stop.sh
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes
fi
- name: stop ec2
if: vars.BENCHMARKS_DEFAULT_RUNNERS_TYPE == 'self-hosted-ec2' && cancelled()
working-directory: ./benchmarks
shell: bash
run: self_stop.sh
run: |
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes
6 changes: 4 additions & 2 deletions .github/workflows/manual-benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ jobs:
bash scripts/complete_benchmark.sh
if [ "${{ vars.BENCHMARKS_DEFAULT_RUNNERS_TYPE }}" == 'self-hosted-ec2' ]
then
self_stop.sh
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes
fi
- name: stop ec2
if: vars.BENCHMARKS_DEFAULT_RUNNERS_TYPE == 'self-hosted-ec2' && cancelled()
working-directory: ./benchmarks
shell: bash
run: self_stop.sh
run: |
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes
start_ec2:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/use-cases-benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ jobs:
bash scripts/complete_benchmark.sh
if [ "${{ vars.BENCHMARKS_USE_CASES_RUNNERS_TYPE }}" == 'self-hosted-ec2' ]
then
self_stop.sh
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes
fi
- name: stop ec2
if: vars.BENCHMARKS_USE_CASES_RUNNERS_TYPE == 'self-hosted-ec2' && cancelled()
working-directory: ./benchmarks
shell: bash
run: self_stop.sh
run: |
echo bash "$(pwd)/scripts/self_stop_ec2.sh" | at now +2 minutes

0 comments on commit 00ec0c4

Please sign in to comment.