Uh oh!
There was an error while loading. Please reload this page.
Add button to download task logs as a text file - #49412
Conversation
| const element = document.createElement("a"); | ||
| element.href = URL.createObjectURL(file); | ||
| element.download = `taskInstanceLogs.txt`; |
There was a problem hiding this comment.
This looks the filename for the downloaded log file. This should include dagId and taskInstance details in the name like Airflow 2 else this might keep overwriting the file on disk or create something like taskInstanceLogs(1).txt
There was a problem hiding this comment.
+1 on ${dagId}-${taskId}-${runId}-${mapIndex}-${tryNumber}.txt
| ) => { | ||
| const refetchInterval = useAutoRefresh({ dagId }); | ||
| const { data, ...rest } = useTaskInstanceServiceGetLog( |
There was a problem hiding this comment.
I guess you can pass text/plain in the accept here and get the raw value of the log file in the storage which is the value users usually want to reduce the code for formatting.
accept?: "application/json" | "text/plain" | "*/*";
airflow/airflow-core/src/airflow/api_fastapi/core_api/routes/public/log.py
Lines 136 to 153 in 96c6daa
bbovenzi
commented
May 6, 2025
@aarochuk mind rebasing and addressing PR comments? |
aarochuk
commented
May 7, 2025
@bbovenzi I will make sure to make another push by the end of the week sorry it has taken so long |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
bbovenzi
commented
Jul 1, 2025
@aarochuk are you still able to finish this PR? |
phanikumv
commented
Jul 31, 2025
@aarochuk just checking in to see if you need help with this PR? |
uranusjr
commented
Aug 13, 2025
Removing from 3.1.0 due to lack of response and the PR not in a working state. Please comment if anyone is interested in picking this up, we can add it back if possible. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
Added ability to download task instance logs in airflow 3 ui as described in issue #47689
closes: #47689