Skip to content

fix(session): exit 1 when colab stop session does not exist - #277

Merged
sethtroisi merged 1 commit into
googlecolab:mainfrom
sethtroisi:fix-stop-missing-session
Nov 24, 2026
Merged

sethtroisi merged 1 commit into
googlecolab:mainfrom
sethtroisi:fix-stop-missing-session

Conversation

@sethtroisi

Copy link
Copy Markdown
Collaborator

Delegate missing-session handling in stop() to State.get_session(name) instead of passing ignore_missing_session=True and returning 0. This aligns colab stop -s <name> with all other session-scoped subcommands while keeping colab stop --all exiting 0 when no sessions are active.

Refs #251

@google-cla

google-cla Bot commented Nov 24, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Delegate missing-session handling in stop() to State.get_session(name) instead of passing ignore_missing_session=True and returning 0. This aligns colab stop -s <name> with all other session-scoped subcommands while keeping colab stop --all exiting 0 when no sessions are active.

See: googlecolab#251
@sethtroisi
sethtroisi force-pushed the fix-stop-missing-session branch from 1acd645 to 962457d Compare November 24, 2026 02:34
@sethtroisi
sethtroisi merged commit 33eacf1 into googlecolab:main Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants