From e155699ef4b72aa6cc8506ec6b1cb0918ec8690d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Dav=C3=B3?= Date: Fri, 6 Oct 2023 09:16:37 +0200 Subject: [PATCH] Retry upload dw on failure --- .github/workflows/update-datasets.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-datasets.yml b/.github/workflows/update-datasets.yml index 0184721..0c713b6 100644 --- a/.github/workflows/update-datasets.yml +++ b/.github/workflows/update-datasets.yml @@ -42,7 +42,11 @@ jobs: - name: Install dao-scripts run: pip install dao-scripts[upload] - name: Upload dataset - run: dao-utils-upload-dw + uses: nick-fields/retry@v2 + with: + command: dao-utils-upload-dw + max_attempts: 3 + retry_wait_seconds: 60 env: KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }} KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}