Skip to content

Add additional task instance attributes to task instance's details section#68378

Merged
jscheffl merged 5 commits into
apache:mainfrom
jayachandrakasarla:fix-67971-task-instance-details
Jun 14, 2026
Merged

Add additional task instance attributes to task instance's details section#68378
jscheffl merged 5 commits into
apache:mainfrom
jayachandrakasarla:fix-67971-task-instance-details

Conversation

@jayachandrakasarla

@jayachandrakasarla jayachandrakasarla commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Closes: #67971

What

This PR enhances the Airflow 3 Task Instance Details page by surfacing additional task instance metadata that was previously available in Airflow 2.

A new Additional Task Instance Attributes section has been added to the Details view, displaying:

  • Try Number
  • Max Tries
  • DAG ID
  • Trigger
  • Triggerer Job

The PR also adds the corresponding translation strings for the new UI labels.

Why

Airflow 3 exposes task retry history through the try selector, but some task instance metadata is not easily discoverable from the Details view.

This change surfaces additional task instance attributes such as Max Tries, DAG ID, Trigger, and Triggerer Job, making task debugging and troubleshooting easier while restoring information that was previously available in Airflow 2.

Testing

Tested locally using Breeze and the Airflow UI.

Verified:

  • Successful task instances display the new attributes section.
  • Retrying tasks display updated Try Number and Max Tries values.
  • Deferrable sensor tasks correctly surface Trigger and Triggerer Job information when applicable.
  • Existing task details functionality remains unchanged.
  • UI linting, formatting, and TypeScript compilation checks pass.

Screenshots

additional task attributes - triggerer

Also, the screenshot in issue #67971 shows the "Dependencies Blocking Task From Getting Scheduled" section. This functionality is already present in Airflow 3. The section is displayed when a task is waiting for its upstream dependencies to complete and is hidden once the task is no longer blocked (for example, after the upstream tasks have completed).

Here's the screenshot of the same:
dependencies

Was generative AI tooling used to co-author this PR?

[X] Yes

Used ChatGPT to understand the codebase and assist with implementing the changes in Details.tsx.


Note

✅ Ready for review · @jayachandrakasarla@potiuk · 2026-06-12 13:30 UTC

Thanks @jayachandrakasarla — all checks are green and this PR is marked ready for maintainer review. The ball is with the maintainers now; a maintainer will take the next look.

Automated triage — may be imperfect.

@boring-cyborg

boring-cyborg Bot commented Jun 11, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@jayachandrakasarla jayachandrakasarla changed the title Fix 67971 task instance details Fix #67971 task instance details Jun 11, 2026
@jayachandrakasarla jayachandrakasarla force-pushed the fix-67971-task-instance-details branch from e4efba1 to e22de0f Compare June 11, 2026 07:22
@jayachandrakasarla jayachandrakasarla changed the title Fix #67971 task instance details Add additional task instance attributes to task instance's details section Jun 11, 2026
Comment thread airflow-core/src/airflow/ui/src/pages/TaskInstance/Details.tsx
Comment thread airflow-core/src/airflow/ui/src/pages/TaskInstance/Details.tsx Outdated
@jayachandrakasarla jayachandrakasarla force-pushed the fix-67971-task-instance-details branch from 8a64fd0 to ce4b581 Compare June 11, 2026 11:20
Comment thread airflow-core/src/airflow/ui/public/i18n/locales/en/common.json Outdated
Comment thread airflow-core/src/airflow/ui/src/pages/TaskInstance/Details.tsx Outdated
@jayachandrakasarla jayachandrakasarla force-pushed the fix-67971-task-instance-details branch from bed59fd to 6c71049 Compare June 11, 2026 16:29
@jayachandrakasarla

Copy link
Copy Markdown
Contributor Author

@bbovenzi please let me know if I need make any other changes.

@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jun 12, 2026

@jscheffl jscheffl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@jscheffl jscheffl added this to the Airflow 3.3.0 milestone Jun 14, 2026
@jscheffl jscheffl merged commit 9ce71fd into apache:main Jun 14, 2026
85 checks passed
pgagnon pushed a commit to pgagnon/airflow that referenced this pull request Jun 15, 2026
…ction (apache#68378)

* Add additional task instance attributes to Airflow 3 UI task instance details page

* Add task instance attributes to task details page

* added task instance id and filtered out kwargs from trigger

* renamed Task Instance ID to ID in common.json

* Added RenderedJsonField component to render JSON in the details page

---------

Co-authored-by: Jayachandra Kasarla <[email protected]>
imrichardwu pushed a commit to imrichardwu/airflow that referenced this pull request Jun 16, 2026
…ction (apache#68378)

* Add additional task instance attributes to Airflow 3 UI task instance details page

* Add task instance attributes to task details page

* added task instance id and filtered out kwargs from trigger

* renamed Task Instance ID to ID in common.json

* Added RenderedJsonField component to render JSON in the details page

---------

Co-authored-by: Jayachandra Kasarla <[email protected]>
dingo4dev pushed a commit to dingo4dev/airflow that referenced this pull request Jun 16, 2026
…ction (apache#68378)

* Add additional task instance attributes to Airflow 3 UI task instance details page

* Add task instance attributes to task details page

* added task instance id and filtered out kwargs from trigger

* renamed Task Instance ID to ID in common.json

* Added RenderedJsonField component to render JSON in the details page

---------

Co-authored-by: Jayachandra Kasarla <[email protected]>
RulerChen pushed a commit to RulerChen/airflow that referenced this pull request Jun 16, 2026
…ction (apache#68378)

* Add additional task instance attributes to Airflow 3 UI task instance details page

* Add task instance attributes to task details page

* added task instance id and filtered out kwargs from trigger

* renamed Task Instance ID to ID in common.json

* Added RenderedJsonField component to render JSON in the details page

---------

Co-authored-by: Jayachandra Kasarla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. ready for maintainer review Set after triaging when all criteria pass. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Task Instance details page on Airflow 3

5 participants