Skip to content

colab new ReadTimeout (120s) leaves unmanageable orphan [?] runtime billing compute units #263

Done

Description

@adamwwardak

Description:
Describe the bug
When colab new hits its default 120-second ReadTimeout during provisioning, the CLI aborts without saving the session locally, even though the backend continues allocating the runtime. This leaves an active, unmanageable [?] session that consumes compute units until automatic timeout.
(Related discussion: "Bug: assign ReadTimeout can leave a live orphan assignment; reconcile before retrying" in googlecolab/google-colab-cli Discussions)
To Reproduce

  • Run colab new -s s3 --gpu G4 (using colab-cli 0.8.0 on Linux) when provisioning takes longer than 120 seconds.

  • Observe the CLI fail with:
    ReadTimeout: HTTPSConnectionPool(host='colab.research.google.com', port=443): Read timed out.

  • Wait ~15 minutes and run colab sessions and colab usage.

  • Observe the backend allocated the runtime anyway, listed as [?] gpu-g4-s-ft-use5b0-2tazaxdvrrsdt | Hardware: G4, consuming 10.05 units/hr.

  • Attempt to manage or terminate it via colab status s3, colab exec, or colab stop s3. All fail with Session not found because the session was never written to local state. The runtime also does not appear under "Manage sessions" in the Colab web UI.
    Expected behavior
    Either:

  • colab new should catch ReadTimeout (or poll/recover pending assignments) and save the session locally if provisioning succeeds, OR

  • colab stop should support stopping unregistered/orphaned assignments directly by endpoint ID (e.g., colab stop --endpoint <endpoint_id>), and the default request timeout should be increased for high-demand GPU allocations.
    Workaround
    Setting COLAB_CLI_REQUEST_TIMEOUT to a higher value prevents the premature timeout on subsequent runs.
    Environment:

  • OS: Linux

  • colab-cli version: 0.8.0

  • Hardware requested: G4

Activity

  1. sethtroisi commented on Dec 3, 2026

    @sethtroisi
    Collaborator

    #315 allows for colab stop -s <endpoint>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions