Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch served logs when no remote/executor logs available for non-running task try #39177

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

kahlstrm
Copy link
Contributor

@kahlstrm kahlstrm commented Apr 22, 2024

This PR implements #32561 in a different way. This caused a regression for our use case, where non-running task try logs weren't shown in UI for running tasks. This is due to us storing the logs on the worker with a Persistent Volume.

Instead of never fetching the logs from the server for non-running task tries, try to fetch them if and only if there are no remote or executor logs available already.


^ 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 newsfragments.

@kahlstrm kahlstrm requested a review from RNHTTR April 24, 2024 12:04
@kahlstrm kahlstrm force-pushed the main branch 3 times, most recently from 368bb21 to 3c32218 Compare April 24, 2024 17:04
@RNHTTR
Copy link
Contributor

RNHTTR commented Apr 24, 2024

I can't resolve my conversations for some reason... maybe because some git stuff as it's only showing one commit? Either way, my comments were addressed.

Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

@dstandish ? Can you also take a look maybe?

@potiuk potiuk merged commit eca077b into apache:main Apr 25, 2024
42 checks passed
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Apr 25, 2024
jedcunningham pushed a commit that referenced this pull request Apr 26, 2024
RodrigoGanancia pushed a commit to RodrigoGanancia/airflow that referenced this pull request May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants