Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

UI - Download Tasks Logs button#56771

Merged
pierrejeambrun merged 2 commits intoapache:mainfrom
astronomer:download-task-logs
Oct 20, 2025
Merged

UI - Download Tasks Logs button#56771
pierrejeambrun merged 2 commits intoapache:mainfrom
astronomer:download-task-logs

Conversation

Copy link
Member

pierrejeambrun commented Oct 17, 2025

closes: #47689
Attemps: #49412 and #54481 went stale.

This adds a button to download logs. This will download the 'filtered' view as a text file. This is not emitting any additional request and re-use the one we make for displaying logs in the details tab. Just the formatting is different.

Screen.Recording.2025-10-17.at.15.31.50.mov

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

jason810496 and Joffreybvn reacted with thumbs up emoji
pierrejeambrun added this to the Airflow 3.2.0 milestone Oct 17, 2025
pierrejeambrun requested review from bbovenzi, jscheffl, ryanahamilton and shubhamraj-git as code owners October 17, 2025 13:33
pierrejeambrun added the type:new-feature Changelog: New Features label Oct 17, 2025
boring-cyborg bot added area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default labels Oct 17, 2025
pierrejeambrun force-pushed the download-task-logs branch from 1abd0c6 to fd47982 Compare October 17, 2025 13:33
Copy link
Member Author

pierrejeambrun commented Oct 17, 2025

renderStructuredLog can now renders log as jsx (as before for UI displaying purpose), or as text for download purposes.

pierrejeambrun force-pushed the download-task-logs branch from fd47982 to 20fceea Compare October 17, 2025 13:42
Copy link
Contributor

bbovenzi commented Oct 17, 2025

Maybe like the other PRs we should move the download button to be in the corner of the logs? Or we need to rename Log Settings, because "Download" isn't really a setting

Copy link
Member Author

pierrejeambrun commented Oct 17, 2025

Yes, you're right, updated, the download button is not in the setting drop down anymore:

bbovenzi approved these changes Oct 17, 2025
pierrejeambrun force-pushed the download-task-logs branch from 9e6057f to 67c634c Compare October 17, 2025 22:10
pierrejeambrun force-pushed the download-task-logs branch from 67c634c to 5bed5c0 Compare October 20, 2025 09:54
pierrejeambrun merged commit a2ee0d8 into apache:main Oct 20, 2025
56 checks passed
pierrejeambrun deleted the download-task-logs branch October 20, 2025 13:22
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Oct 20, 2025
* Download Tasks Logs

* Update following code review
Copy link
Contributor

r-richmond commented Oct 21, 2025 *
edited
Loading

@pierrejeambrun would you be open to back porting this to 3.1.1?

My request is based upon on the fact that the same logic you used here would apply to this pr given downloading task logs was also in AF2.

Copy link
Member Author

pierrejeambrun commented Oct 21, 2025 *
edited
Loading

@r-richmond I understand, but this one really feels like a new feature compared to previous version. Not supporting log download isn't really a bug IMO.

But if this is critical and others feel like it, I guess we can be opened to back porting, but I would recommend 3.2 in that instance.

Is that something that you urgently need?

Copy link
Contributor

r-richmond commented Oct 21, 2025

Could you clarify why it feels like a new feature? (Given it was in 2.x I'm missing something).

I don't think I can honestly make the case for urgent. And if I'm being honest I'm just advocating for getting a feature out faster so that the list of missing features in AF3 gets a little smaller. (I was raked over the coals for early upgrading to AF3, AF2 was such a big improvement over AF1 I didn't really consider waiting. And this is one of the items I got some extra flack for since the logs in 3 have a few usability/perf degradations).

Copy link
Member Author

pierrejeambrun commented Oct 22, 2025 *
edited
Loading

Maybe my comment on the other PR was confusing but the way I see it is that things that 'were in AF2' and are added back in 'AF3' shouldn't automatically be considered a bug fix.

For the PR you referred too (#54677) this was a behavior that used to work in AF2, and was by mistake omitted in AF3, causing bugs to people using dynamic alerts. There was no workaround it because the server would just crash. Those are the two reasons why I figured a bug fix was appropriate.

On the other side, this 'download logs' button was purposely omitted when developing AF3 because of capacity and other priorities at the time. This piece is being added back now and I think it should be flagged as a feature, because it is a feature compared to previous iteration. In the meantime people can use the Rest endpoint to download logs if they want to.

All of that is subject to interpretation, and I guess it depends on how you see it, this is what I would recommend, but I am open to other opinions if the Release Manager wants to release it early.

Copy link
Contributor

bbovenzi commented Oct 22, 2025

It is a feature, but I could be swayed to move it forward as its not a large change.

bbovenzi modified the milestones: Airflow 3.2.0, Airflow 3.1.2 Oct 22, 2025
TyrellHaywood pushed a commit to TyrellHaywood/airflow that referenced this pull request Oct 22, 2025
* Download Tasks Logs

* Update following code review
bbovenzi mentioned this pull request Oct 30, 2025
2 tasks
kaxil pushed a commit that referenced this pull request Oct 31, 2025
* Download Tasks Logs

* Update following code review

(cherry picked from commit a2ee0d8)
kaxil pushed a commit that referenced this pull request Oct 31, 2025
* Download Tasks Logs

* Update following code review

(cherry picked from commit a2ee0d8)
RoyLee1224 mentioned this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

bbovenzi bbovenzi approved these changes

ryanahamilton Awaiting requested review from ryanahamilton ryanahamilton is a code owner

jscheffl Awaiting requested review from jscheffl

shubhamraj-git Awaiting requested review from shubhamraj-git shubhamraj-git is a code owner

Assignees

No one assigned

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default type:new-feature Changelog: New Features

Projects

None yet

Milestone

Airflow 3.1.2

Development

Successfully merging this pull request may close these issues.

No option to download task logs on Airflow 3 UI

3 participants