Add endpoint build logs and server logs retrieval tools#414
Open
jralfonsog wants to merge 2 commits intodatabricks-solutions:mainfrom
Open
Add endpoint build logs and server logs retrieval tools#414jralfonsog wants to merge 2 commits intodatabricks-solutions:mainfrom
jralfonsog wants to merge 2 commits intodatabricks-solutions:mainfrom
Conversation
Co-authored-by: Isaac
- Docstrings: opening """ on its own line - Returns sections: bullet list format for dict keys Co-authored-by: Isaac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_serving_endpoint_build_logs()retrieves container image creation output, dependency installation, and model download steps — essential for debugging failed or stuck deploymentsget_serving_endpoint_server_logs()retrieves recent stdout/stderr from the model server, including inference processing and runtime errorsserved_model_name: Both APIs require aserved_model_nameparam that users rarely know. When omitted, it's auto-resolved from the endpoint's first served entity viaget()— zero friction for single-model endpointsChanges
serving/endpoints.py_resolve_served_model_namehelper, addedResourceDoesNotExist/NotFoundimportsserving/__init__.pytools/serving.py@mcp.tool(timeout=30)wrapperstests/unit/test_serving_logs.pySDK methods wrapped
get_serving_endpoint_build_logsbuild_logs(name, served_model_name)GET /api/2.0/serving-endpoints/{name}/served-models/{model}/build-logsget_serving_endpoint_server_logslogs(name, served_model_name)GET /api/2.0/serving-endpoints/{name}/served-models/{model}/logsTest plan
aws-feworkspace (ac_demo-demo_data-sklearn_model-serving-endpoint)sklearn_model-21from endpoint configThis pull request was AI-assisted by Isaac