Skip to content

Commit

Permalink
Added retry action for CI (#1873)
Browse files Browse the repository at this point in the history
* Added retry action

* added retry on error

* Update .github/workflows/ci_cpu.yml

* Update ci_cpu.yml

* Update ci_gpu.yml

Co-authored-by: Aaqib <maaquib@gmail.com>
Co-authored-by: Mark Saroufim <marksaroufim@fb.com>
  • Loading branch information
3 people authored Jan 19, 2023
1 parent 221da4e commit 2d1bd26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ jobs:
run: |
python ts_scripts/install_dependencies.py --environment=dev
- name: Torchserve Sanity
run: |
python torchserve_sanity.py
uses: nick-fields/retry@v2
with:
timeout_minutes: 60
max_attempts: 3
retry_on: error
command: |
python torchserve_sanity.py
- name: mvn install - unix
if: matrix.os != 'windows-latest'
run: |
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ jobs:
run: |
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu102
- name: Torchserve Sanity
run: python torchserve_sanity.py
uses: nick-fields/retry@v2
with:
timeout_minutes: 60
retry_on: error
max_attempts: 3
command: |
python torchserve_sanity.py
- name: mvn install
run: |
cd serving-sdk/ && ./mvnw clean install -q && cd ../
Expand Down

0 comments on commit 2d1bd26

Please sign in to comment.