Skip to content

feat(api): add the terminating instance state - #14

Open
angelini wants to merge 1 commit into
mainfrom
alex/sdk-terminating-state
Open

angelini wants to merge 1 commit into
mainfrom
alex/sdk-terminating-state

Conversation

@angelini

@angelini angelini commented Nov 10, 2026 •

Copy link
Copy Markdown

The director now reports terminating for an instance deleted while its region is unavailable (LIM-806). The instance stops accruing charges and becomes terminated once its region finishes cleanup. This mirrors limrun-inc/typescript-sdk#651 for the Android, iOS and Xcode models: the state literal gains terminating, and the metadata gains the optional terminating_at billing cutoff.

This SDK is still behind the API in other ways, such as the missing Gradle resource and termination_reason, and this change doesn't try to catch those up. ruff and pyright pass, and a terminating payload parses with terminating_at set. mypy reports one error in _utils/_typing.py, which this change doesn't touch and which also fails on main.


Note

Low Risk
Generated OpenAPI type additions only—no runtime or billing logic changes in this repo.

Overview
Adds support for instances deleted while their region is unavailable: Android, iOS, and Xcode instance models now accept a terminating status state (between ready and terminated) and optional terminating_at metadata marking the billing cutoff when that path is used.

This mirrors the director/API behavior (LIM-806) and the TypeScript SDK update; normal regional deletions still use terminated_at only.

Reviewed by Cursor Bugbot for commit 56331ab. Bugbot is set up for automated code reviews on this repo. Configure here.

Instances deleted while their region is unavailable now report state terminating and metadata.terminatingAt until the region finishes cleanup.
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