Skip to content

UI: Refresh task details immediately when switching tasks - #70789

Merged
bbovenzi merged 1 commit into
apache:mainfrom
Andrushika:fix-task-detail-stale-cache
Aug 3, 2026
Merged

UI: Refresh task details immediately when switching tasks#70789
bbovenzi merged 1 commit into
apache:mainfrom
Andrushika:fix-task-detail-stale-cache

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

UI: Refresh task details immediately when switching tasks

Why

After switching away from a task and back, Task Instance status and Task Tries can use a cached response for up to five minutes. This makes the task detail panel briefly inconsistent with Graph view.

2026-07-31.2.13.47.mov

What

Mark the selected Task Instance and Task Tries data as stale immediately, so returning to a task refetches the latest data. Add regression tests for switching from task A to task B and back. This does not change the try de-duplication handled by #70711.

After fix:

2026-07-31.2.01.32.mov

Was generative AI tooling used to co-author this PR?
  • Yes — Codex (GPT-5)

Generated-by: Codex (GPT-5) following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

Cached task data can remain fresh for five minutes after navigating away, leaving the selected task out of sync with Graph view until the next polling interval.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 30, 2026
@bbovenzi bbovenzi added this to the Airflow 3.3.2 milestone Aug 3, 2026
@bbovenzi bbovenzi added the backport-to-v3-3-test Backport to v3-3-test label Aug 3, 2026
@bbovenzi
bbovenzi merged commit a14105b into apache:main Aug 3, 2026
89 checks passed
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

@Andrushika
Andrushika deleted the fix-task-detail-stale-cache branch August 3, 2026 19:17
vatsrahul1001 added a commit that referenced this pull request Aug 4, 2026
…#70789) (#71012)

Cached task data can remain fresh for five minutes after navigating away, leaving the selected task out of sync with Graph view until the next polling interval.
(cherry picked from commit a14105b)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
vatsrahul1001 added a commit that referenced this pull request Aug 5, 2026
…#70789) (#71012)

Cached task data can remain fresh for five minutes after navigating away, leaving the selected task out of sync with Graph view until the next polling interval.
(cherry picked from commit a14105b)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-3-test Backport to v3-3-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants