relativeorbit / fufiters

run hyp3-isce2 via github actions
MIT License
2 stars 0 forks source link

Add retries for ASF authentication errors #4

Open scottyhq opened 3 months ago

scottyhq commented 3 months ago

It's common for the hyp3-isce2 step to error with requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url:. https://github.com/relativeorbit/fufiters/actions/runs/9214190095/job/25349834095

While you can just 'rerun failed jobs' from the GitHub UI, we could also add a try/except block in hyp3-isce2

    with get_asf_session() as session:
         ^^^^^^^^^^^^^^^^^
  File "/home/runner/work/fufiters/fufiters/src/hyp3_isce2/burst.py", line 316, in get_asf_session
    response.raise_for_status()
  File "/home/runner/micromamba/envs/hyp3-isce2/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: 

Or try using this 3rd party github action step that should automatically retry the failed command https://github.com/nick-fields/retry