truss 0.11.10rc2__py3-none-any.whl → 0.11.10rc4__py3-none-any.whl

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.

Potentially problematic release.


This version of truss might be problematic. Click here for more details.

@@ -38,15 +38,17 @@ class SanitizedExceptionMiddleware(BaseHTTPMiddleware):
38
38
  try:
39
39
  return await call_next(request)
40
40
  except Exception as exc:
41
- sanitized_traceback = self._create_sanitized_traceback(exc)
42
- request.app.state.logger.error(sanitized_traceback)
43
- request.app.state.logger.error(f"Request path: {request.url.path}")
44
-
41
+ # NB(nikhil): Intentionally bypass error logging for ModelLoadFailed, since health checks
42
+ # are noisy. The underlying model logs for why the load failed will still be visible.
45
43
  if isinstance(exc, ModelLoadFailed):
46
44
  return JSONResponse(
47
45
  {"error": str(exc)}, status_code=http.HTTPStatus.BAD_GATEWAY.value
48
46
  )
49
- elif isinstance(exc, PatchApplicatonError):
47
+
48
+ sanitized_traceback = self._create_sanitized_traceback(exc)
49
+ request.app.state.logger.error(sanitized_traceback)
50
+
51
+ if isinstance(exc, PatchApplicatonError):
50
52
  error_type = _camel_to_snake_case(type(exc).__name__)
51
53
  return JSONResponse({"error": {"type": error_type, "msg": str(exc)}})
52
54
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: truss
3
- Version: 0.11.10rc2
3
+ Version: 0.11.10rc4
4
4
  Summary: A seamless bridge from model development to model delivery
5
5
  Project-URL: Repository, https://github.com/basetenlabs/truss
6
6
  Project-URL: Homepage, https://truss.baseten.co
@@ -73,7 +73,7 @@ truss/templates/copy_cache_files.Dockerfile.jinja,sha256=Os5zFdYLZ_AfCRGq4RcpVTO
73
73
  truss/templates/docker_server_requirements.txt,sha256=PyhOPKAmKW1N2vLvTfLMwsEtuGpoRrbWuNo7tT6v2Mc,18
74
74
  truss/templates/server.Dockerfile.jinja,sha256=CUYnF_hgxPGq2re7__0UPWlwzOHMoFkxp6NVKi3U16s,7071
75
75
  truss/templates/control/requirements.txt,sha256=nqqNmlTwFeV8sV4fqwItwzzd_egADBP_e-cEopXBJ4k,358
76
- truss/templates/control/control/application.py,sha256=_xcJR-s1AEP_l6lQaTJ6JUNXLw_ZxMB13bmoOs82zZ0,5202
76
+ truss/templates/control/control/application.py,sha256=5Kam6M-XtfKGaXQz8cc3d0bwDkB80o2MskABWROx1gk,5321
77
77
  truss/templates/control/control/endpoints.py,sha256=KzqsLVNJE6r6TCPW8D5FMCtsfHadTwR15A3z_viGxmM,11782
78
78
  truss/templates/control/control/server.py,sha256=R4Y219i1dcz0kkksN8obLoX-YXWGo9iW1igindyG50c,3128
79
79
  truss/templates/control/control/helpers/context_managers.py,sha256=W6dyFgLBhPa5meqrOb3w_phMtKfaJI-GhwUfpiycDc8,413
@@ -369,8 +369,8 @@ truss_train/deployment.py,sha256=lWWANSuzBWu2M4oK4qD7n-oVR1JKdmw2Pn5BJQHg-Ck,307
369
369
  truss_train/loader.py,sha256=0o66EjBaHc2YY4syxxHVR4ordJWs13lNXnKjKq2wq0U,1630
370
370
  truss_train/public_api.py,sha256=9N_NstiUlmBuLUwH_fNG_1x7OhGCytZLNvqKXBlStrM,1220
371
371
  truss_train/restore_from_checkpoint.py,sha256=8hdPm-WSgkt74HDPjvCjZMBpvA9MwtoYsxVjOoa7BaM,1176
372
- truss-0.11.10rc2.dist-info/METADATA,sha256=Xz6AZGAgLWLnOAtsHsSATgnpQ9i9zFi9vWCpCCN08Zc,6681
373
- truss-0.11.10rc2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
374
- truss-0.11.10rc2.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
375
- truss-0.11.10rc2.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
376
- truss-0.11.10rc2.dist-info/RECORD,,
372
+ truss-0.11.10rc4.dist-info/METADATA,sha256=GFhvSeJjOwwq5GKRymh4qZeW_GrK0GTE_22rdRCif_U,6681
373
+ truss-0.11.10rc4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
374
+ truss-0.11.10rc4.dist-info/entry_points.txt,sha256=-MwKfHHQHQ6j0HqIgvxrz3CehCmczDLTD-OsRHnjjuU,130
375
+ truss-0.11.10rc4.dist-info/licenses/LICENSE,sha256=FTqGzu85i-uw1Gi8E_o0oD60bH9yQ_XIGtZbA1QUYiw,1064
376
+ truss-0.11.10rc4.dist-info/RECORD,,