Repository navigation
air: Report pending compute status in air get JSON - #7453
Closed
pardis-beikzadeh-db wants to merge 2 commits into
Closed
pardis-beikzadeh-db wants to merge 2 commits into
pardis-beikzadeh-db wants to merge 2 commits into
Conversation
Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
Thanks for the contribution! This pull request was opened from a fork. If you're a member of the Databricks organization, please request access to the If you're an external contributor, no action is needed; a maintainer will review your pull request. |
Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Contributor
Author
|
Superseded by #7455 |
tedjt
pushed a commit
to tedjt/cli
that referenced
this pull request
Nov 12, 2026
## Changes - `air get -o json` now reports `PENDING` while the run's task is still waiting for compute, matching `air list -o json` ([databricks#6717](databricks#6717)). - Add `status_message` to `air get -o json`: the run's current progress message, as the text view shows it in Status. Only set while the run is unfinished. ## Why The Jobs API reports the parent run as `RUNNING` before its task gets compute, so agents polling `air get -o json` treated a queued run as started. Internal ticket: CNXT-2498. ## Tests - New acceptance test `acceptance/air/get-pending`; `acceptance/air/get-ai-runtime` now also checks that a finished run has no `status_message`. - `go test ./cmd/air`, `go test ./acceptance -run TestAccept/air/`, `./task checks`, `./task lint`. ## Manual test `air get <run_id> -o json` on a 1xA10 run while its task waited for compute (status fields only): ``` w/o fix "status": "RUNNING", w/ fix "status": "PENDING", "status_message": "Waiting for accelerator compute capacity to become available...", ``` After cancel, both builds return `"status": "CANCELED"` with no `status_message`. Supersedes databricks#7453 (opened from a fork, so its CI could not run). _This pull request and its description were written by Isaac._ --------- Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
air get -o jsonnow reportsPENDINGwhile the run's task is still waiting for compute, matchingair list -o json(#6717).status_messagetoair get -o json: the run's current progress message, as the text view shows it in Status. Only set while the run is unfinished.Why
The Jobs API reports the parent run as
RUNNINGbefore its task gets compute, so agents pollingair get -o jsontreated a queued run as started. Internal ticket: CNXT-2498.Tests
acceptance/air/get-pending;acceptance/air/get-ai-runtimenow also checks that a finished run has nostatus_message.go test ./cmd/air,go test ./acceptance -run TestAccept/air/,./task checks,./task lint.This pull request and its description were written by Isaac.