feat(cli): add command to cancel an active kernel session - #1174
Closed
latiefdole wants to merge 3 commits into
Closed
feat(cli): add command to cancel an active kernel session#1174latiefdole wants to merge 3 commits into
latiefdole wants to merge 3 commits into
Conversation
Three small, output-compatible usability fixes aimed at people running the CLI for the first time. None of them change the output of a successful command. Errors: API failures printed the raw requests error, so a mistyped reference produced a bare "404 Client Error for url: ..." with no indication of what to do next. Add a hint under the original message for the statuses a user can act on (403 rules, 404 reference/search, 429 backoff) and attribute 5xx to Kaggle rather than to the user's command. The message itself is preserved. Unexpected errors: only HTTPError/IOError/ValueError were caught, so an internal KeyError or AttributeError surfaced as a Python traceback that reads like the user did something wrong. Catch the rest, print a one-line summary plus a pointer to the issue tracker, and add --debug to get the traceback back for bug reports. Help: `kaggle --help` listed commands but showed no examples. Add an epilog with the handful of commands a new user actually starts with (log in, list, download, submit).
Contributor
|
/gcbrun |
Contributor
|
|
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.
Description
Adds kaggle kernels cancel <SESSION_ID> command to stop a stale or runaway kernel session without deleting the kernel. This command wraps the existing ApiCancelKernelSessionRequest in the Kaggle SDK.
Changes Made
Related Issues
Fixes #1169
Fixes #1172