NASA-PDS / registry-sweepers

Scripts that run regularly on the registry database, to clean and consolidate information
Apache License 2.0
0 stars 1 forks source link

fix incorrectly-implemented retries #67

Closed alexdunnjpl closed 10 months ago

alexdunnjpl commented 10 months ago

🗒️ Summary

utils.query_registry_db() makes a couple of requests calls with retry.retry_call(), but the requests calls don't raise exceptions for non-200 HTTP statuses until resp.raise_for_status() is explicitly called, outside the retry wrapper.

⚙️ Test Data and/or Report

Manually tested against ATM

♻️ Related Issues

fixes #66

alexdunnjpl commented 10 months ago

merge on approve