You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note: retry logic could be attached to the `client` Session by `mount`ing an HTTPAdapter with custom
659
694
# `max_retries`, however we do not want to mutate the provided Session. Instead, retry only on errors we explicitly
660
695
# consider retryable.
@@ -664,13 +699,14 @@ def get_location() -> str:
664
699
ifis_netloc_fake:
665
700
failure_message=f"query_and_describe attempt {attempt+1} from PID {os.getpid()} to {verb}{url} was not attempted because network location of {url} was identified as fake: {settings.fake_netlocs}\nAt {get_location()}"
failure_message=f"query_and_describe attempt {attempt+1} from PID {os.getpid()} to {verb}{url} failed with timeout {type(e).__name__}: {str(e)}\nAt {get_location()}"
@@ -689,38 +725,28 @@ def get_location() -> str:
689
725
ifnotexpect_failure:
690
726
logger.warning(failure_message)
691
727
failures.append(failure_message)
728
+
692
729
ifnotretryable:
693
-
break
730
+
returnbuild_failing_query(t0)
731
+
694
732
exceptrequests.RequestExceptionase:
695
733
failure_message=f"query_and_describe attempt {attempt+1} from PID {os.getpid()} to {verb}{url} failed with non-retryable RequestException {type(e).__name__}: {str(e)}\nAt {get_location()}"
696
734
ifnotexpect_failure:
697
735
logger.warning(failure_message)
698
736
failures.append(failure_message)
699
737
700
-
break
701
-
finally:
702
-
t1=datetime.datetime.now(datetime.UTC)
703
-
704
-
# Reconstruct request similar to the one in the query (which is not
0 commit comments