Skip to content

lakebox: show "never" when server has no idle_timeout#5321

Merged
akshaysingla-db merged 1 commit into
databricks:demo-lakeboxfrom
akshaysingla-db:akshay/lakebox-autostop-label
May 24, 2026
Merged

lakebox: show "never" when server has no idle_timeout#5321
akshaysingla-db merged 1 commit into
databricks:demo-lakeboxfrom
akshaysingla-db:akshay/lakebox-autostop-label

Conversation

@akshaysingla-db
Copy link
Copy Markdown
Collaborator

The CLI was rendering AUTOSTOP as "10m" whenever idle_timeout was unset on the wire, claiming to mirror a manager-side watchdog_idle_grace_secs fallback. That constant does not exist anywhere in the current tree (only a stale comment in lakebox/proto/lakebox.proto); the ESM-side checker that would enforce auto-stop is also gated off via the lakeboxCheckerEnabled SAFE flag. So today the "10m" label was cosmetic — sandboxes with unset idle_timeout live indefinitely.

Render unset/zero as "never" to match what the system actually does, and drop the misleading defaultAutoStopSecs constant. Tracking the service-side enforcement work (and the eventual swap-back here) in CJ-75655.

Co-authored-by: Isaac

Changes

Why

Tests

The CLI was rendering AUTOSTOP as "10m" whenever `idle_timeout` was
unset on the wire, claiming to mirror a manager-side
`watchdog_idle_grace_secs` fallback. That constant does not exist
anywhere in the current tree (only a stale comment in
`lakebox/proto/lakebox.proto`); the ESM-side checker that would enforce
auto-stop is also gated off via the `lakeboxCheckerEnabled` SAFE flag.
So today the "10m" label was cosmetic — sandboxes with unset
`idle_timeout` live indefinitely.

Render unset/zero as "never" to match what the system actually does,
and drop the misleading `defaultAutoStopSecs` constant. Tracking the
service-side enforcement work (and the eventual swap-back here) in
CJ-75655.

Co-authored-by: Isaac
@akshaysingla-db akshaysingla-db merged commit 44caa6a into databricks:demo-lakebox May 24, 2026
6 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @shuochen0311 -- recent work in cmd/lakebox/

Eligible reviewers: @andrewnester, @anton-107, @denik, @pietern, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

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.

1 participant