@danhachuel/thunderbolt 0.4.38 → 0.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -326,7 +326,7 @@ def _is_retryable_media_error(exc: BaseException) -> bool:
|
|
|
326
326
|
text = str(exc).lower()
|
|
327
327
|
if any(marker in text for marker in ("http 400", "http 401", "http 403", "http 404", "invalid request", "missing", "não tem endpoint")):
|
|
328
328
|
return False
|
|
329
|
-
return any(marker in text for marker in ("http 408", "http 425", "http 429", "http 500", "http 502", "http 503", "http 504", "timeout", "timed out", "connection", "temporarily", "cooldown"))
|
|
329
|
+
return any(marker in text for marker in ("http 402", "http 408", "http 425", "http 429", "http 500", "http 502", "http 503", "http 504", "timeout", "timed out", "connection", "temporarily", "cooldown"))
|
|
330
330
|
|
|
331
331
|
|
|
332
332
|
def generate_image_from_pool(
|
|
@@ -225,7 +225,7 @@ def acquire_nvidia_rpm_slot(
|
|
|
225
225
|
|
|
226
226
|
|
|
227
227
|
def _status_category(status_code: int) -> tuple[str, bool]:
|
|
228
|
-
if status_code
|
|
228
|
+
if status_code in {402, 429}:
|
|
229
229
|
return "quota", True
|
|
230
230
|
if status_code in {408, 425} or status_code >= 500:
|
|
231
231
|
return "transient", True
|
package/package.json
CHANGED