Tags: Paperspace/gradient-cli
Tags
chore(datasets): improve logging and retry logic for MPUs (#387) This adds some basic retry logic for multipart upload parts so we don't choke immediately if a single part fails for any reason. It also adds some decidedly jank logging to update the end user on the progress of large uploads. Unfortunately this can create some really noisy console logs, but the way we have Halo implemented makes it just annoying enough to do a cleaner job of things as to not be worthwhile. The important thing is that users should now get relevant, timely information as to how large uploads are progressing, or an informative error message if the upload fails to complete for any reason.
fix(clusters): machineTypes list returns no data PLA-867 (#386) * Include public cluster data by default. You cannot use --clusterId to see public cluster data because of the way the endpoint works. * When there are inactive vmTypes in the cluster the response does not include enough info to render the table properly so inactive instances are now filtered from the response.
feat(deployments): add logs to python package (#382) This hijacks some old crufty log machinery to enable log streaming from the new Deployments V3. This exposes two new methods, one generator and one that just dumps a buttload of logs in your lap. By way of example: ``` >>> from gradient import gradient_deployments >>> import json >>> >>> >>> logs = gradient_deployments.get_deployment_logs( ... deployment_id='6753a6cc-393a-478d-bc29-9e8828a0aa2f', ... limit=5, ... api_key='<REDACTED>') >>> print(json.dumps(logs, indent=4)) [ [ 2, "", "2021-12-13T21:41:39.711Z" ], [ 3, " Welcome to Streamlit. Check out our demo in your browser.", "2021-12-13T21:41:39.711Z" ], [ 4, "", "2021-12-13T21:41:39.711Z" ], [ 5, " Network URL: http://10.42.40.230:8501", "2021-12-13T21:41:39.711Z" ], [ 6, " External URL: http://172.83.13.4:8501", "2021-12-13T21:41:39.711Z" ] ] >>> >>> logs = gradient_deployments.yield_deployment_logs( ... deployment_id='6753a6cc-393a-478d-bc29-9e8828a0aa2f', ... limit=5, ... api_key='<REDACTED>') >>> next(logs) LogRow(line=2, message='', timestamp='2021-12-13T21:41:39.711Z') ```
PreviousNext