Skip to content

Say in the AI Model tab which values are kept in external storage - #76747

Merged
pierrejeambrun merged 2 commits into
apache:mainfrom
astronomer:show-offloaded-ai-model-values
Nov 9, 2026
Merged

pierrejeambrun merged 2 commits into
apache:mainfrom
astronomer:show-offloaded-ai-model-values

Conversation

@pierrejeambrun

@pierrejeambrun pierrejeambrun commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

With an XCom backend that keeps values in external storage (for example common.io with xcom_objectstorage_threshold set), the public XCom endpoint the AI Model tab reads returns the reference the backend stored in the database, not the value. The API server deliberately never runs the backend's deserialize_value, so the tab cannot get the real value.

Each section handled that differently, and none of them told the user:

  • the model badge showed the reference as if it were the model name;
  • the usage stat boxes disappeared;
  • the skills section disappeared.

So an offloaded value looked the same as a task that never published it. The tab now lists each value kept in external storage with its reference. Usage and skills are recognised by type (a string where an object or a list is expected). The model name is a string either way, so it counts as a reference when it holds a URI scheme (://). That works for any backend, at the cost of one known false positive: a model name that is itself a URI, such as one vLLM serves from --model s3://..., is listed as a reference too.

The observability docs already described this limitation; they now describe the new behaviour.

Screenshots

Same agent task, run once with XComs in the database and once with every XCom offloaded (XComObjectStorageBackend, threshold 0):

main This PR
XComs offloaded
XComs in the database (unchanged)

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

With an XCom backend that offloads values, the public XCom endpoint returns the stored reference, so the tab showed the reference as the model name and silently dropped usage and skills. Users could not tell an offloaded value from a task that published nothing.
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Nov 9, 2026
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Nov 9, 2026
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Nov 9, 2026
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Nov 9, 2026
@pierrejeambrun
pierrejeambrun marked this pull request as ready for review November 9, 2026 14:21
Drops the claim that a model name never holds a URI scheme: vLLM serves the --model value as the name, so a model streamed from s3:// is listed as kept in external storage. That case is accepted rather than tied to one backend's path layout.
@pierrejeambrun
pierrejeambrun force-pushed the show-offloaded-ai-model-values branch from 7c9b508 to 3956905 Compare November 9, 2026 16:25
@pierrejeambrun
pierrejeambrun enabled auto-merge (squash) November 9, 2026 16:29
@pierrejeambrun
pierrejeambrun merged commit df93716 into apache:main Nov 9, 2026
71 checks passed
@pierrejeambrun
pierrejeambrun deleted the show-offloaded-ai-model-values branch November 9, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants