Configuration for debugging mode.
Debug mode - “pdb” (default, WebSocket PTY) or “pdb-ui” (web-based UI)
Literal[‘pdb’, ‘pdb-ui’]
Debug port (default: 5678)
int
Configuration for logging behavior on a Kubetorch service.
This config is set at the Compute level and applies to all calls made to that service. It controls both runtime log streaming (during method calls) and startup log streaming (during .to() deployment).
Whether log streaming is enabled for this service. When True, logs from the remote compute are streamed back to the client during calls and service startup. Individual calls can override this with stream_logs=False. If None, falls back to global config.stream_logs setting. Default: True
bool
Log level for the remote service. Controls which logs are emitted by the service and available for streaming. Also controls client-side filtering. Options: “debug”, “info”, “warning”, “error”. Default: “info”
Literal[‘debug’, ‘info’, ‘warning’, ‘error’]
Whether to include framework logs (e.g., uvicorn.access). Default: False (only show application logs)
bool
Whether to include Kubernetes events during service startup. Events include pod scheduling, image pulling, container starting, etc. Default: True
bool
Seconds to continue streaming after request completes, to catch any final logs that arrive late. Default: 2.0
float
Whether to prepend pod/service name to each log line. Default: True
bool
Timeout in seconds for WebSocket receive during normal streaming. Default: 1.0
float
Timeout in seconds for WebSocket receive during grace period. Shorter timeout allows faster shutdown while still catching late logs. Default: 0.5
float
Seconds to block the main thread after the HTTP call completes, waiting for the log streaming thread to finish. This prevents the Python interpreter from exiting before final logs are printed. Set to 0 for no blocking (default), or a few seconds (e.g., 3.0) if you need to ensure wrap-up logs from the remote compute are captured. Default: 0
float
Configuration for streaming metrics during a Kubetorch service call.
Time between two consecutive metrics outputs, in seconds. Default: 30.
int
Metrics aggregation level. Options: “pod”, “resource”. Default: “resource”
Literal[‘pod’, ‘resource’]