Skip to content

Commit

Permalink
Finished implementing job retry for boundary data download
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed Jul 13, 2022
1 parent db4f70d commit 17e1b74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/run_algoa-bay-forecast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ jobs:
echo "::set-output name=WORKDIR_YESTERDAY::/tmp/somisana/algoa-bay-forecast/${{ env.branch_ref }}/${{ env.dirname_yesterday }}"
# Download environmental data used to constrain model boundaries.
# This job is retried if it fails, since the failure can be due to upstream errors
# These downloads are used to create forcing files that are fed as input to the CROCO model
# => marine.copernicus.eu: This is ocean data that forms the boundary of our model run
# => ncei.noaa.gov: This is weather data used to create sea-surface conditions for our model run
Expand All @@ -233,11 +234,13 @@ jobs:
WORKDIR: ${{ needs.workdir.outputs.WORKDIR }}
steps:
- name: Source ~/.bashrc (for NVM - required for non-interactive shells)
run: source ~/.bashrc
run: |
source ~/.bashrc
nvm use 16.14.2
- name: Download Algoa-bay forcing input
uses: nick-fields/retry@v2
with:
timeout_minutes: 20 # Script is considered failed if this limit is reached
timeout_minutes: 30 # Script is considered failed if this limit is reached
retry_wait_seconds: 600 # Wait 10 minutes and try again
max_attempts: 10
retry_on: any
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-local-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- name: Install node_modules for action
run: |
source ~/.bashrc
nvm use 16.14.2
npm ci --only production --prefix .github/actions/hello-world/
- name: Hello world action step
id: hello
Expand Down

0 comments on commit 17e1b74

Please sign in to comment.