agrc / masquerade

Disguise UGRC's Web API endpoints as an Esri locator service.
https://github.com/agrc/masquerade#readme
MIT License
1 stars 0 forks source link

feat: add retries to database queries #63

Closed stdavis closed 2 years ago

stdavis commented 2 years ago

Hoping to try to help with these types of errors:

File "/usr/local/lib/python3.10/site-packages/masquerade/providers/open_sgid.py", line 67, in query cursor.execute(query) File "/usr/local/lib/python3.10/site-packages/psycopg/cursor.py", line 725, in execute raise ex.with_traceback(None) psycopg.OperationalError: consuming input failed: server closed the connection unexpectedly

codecov[bot] commented 2 years ago

Codecov Report

Base: 85.11% // Head: 85.39% // Increases project coverage by +0.28% :tada:

Coverage data is based on head (4e8cbec) compared to base (bd68e68). Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head 4e8cbec differs from pull request most recent head 376f565. Consider uploading reports for the commit 376f565 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #63 +/- ## ========================================== + Coverage 85.11% 85.39% +0.28% ========================================== Files 3 3 Lines 309 315 +6 Branches 37 37 ========================================== + Hits 263 269 +6 Misses 40 40 Partials 6 6 ``` | [Impacted Files](https://codecov.io/gh/agrc/masquerade/pull/63?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=agrc) | Coverage Δ | | |---|---|---| | [src/masquerade/providers/open\_sgid.py](https://codecov.io/gh/agrc/masquerade/pull/63/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=agrc#diff-c3JjL21hc3F1ZXJhZGUvcHJvdmlkZXJzL29wZW5fc2dpZC5weQ==) | `94.32% <100.00%> (+0.25%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=agrc). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=agrc)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

stdavis commented 2 years ago

One more try with the rebase to remove conflicts...