Skip to content

feat(truss): add --bump flag to isession command for extending sessio…#2232

Draft
aghilann wants to merge 1 commit intomainfrom
bump
Draft

feat(truss): add --bump flag to isession command for extending sessio…#2232
aghilann wants to merge 1 commit intomainfrom
bump

Conversation

@aghilann
Copy link
Contributor

@aghilann aghilann commented Feb 13, 2026

🚀 What

  • Adds a --bump flag to truss train isession that lets users interactively extend the expiration of all active interactive sessions for a job
  • Adds an "Expires In" column to the isession table so users can see how much time remains before sessions expire

💻 How

  • New _bump_session_timeout function presents an InquirerPy arrow-key menu with duration options (30m–8h), computes a new expires_at timestamp, and PATCHes each session via the API
  • New _format_time_until_expiry helper converts UTC expiry timestamps into human-readable countdowns (e.g. 2h 30m, Expired)
  • New BasetenApi.update_interactive_session_expiry method calls PATCH /v1/training_projects/{project_id}/jobs/{job_id}/interactive_sessions/{session_id}

🔬 Testing

  • Manual testing against a local training job with a local interactive session
image image

…n expiry

Adds interactive session timeout extension via `truss train isession --bump`,
with a new API method for PATCH-ing session expiry and an "Expires In" column
in the isession table display.
@aghilann aghilann marked this pull request as draft February 13, 2026 20:09
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