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

TaskLogReader should check both "airflow.task" and root logger for handler #30860

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

dstandish
Copy link
Contributor

When task is running, handlers are moved from airflow.task to root. Under normal circumstances this is a non-issue because the reader is instantiated in a webserver but there are certain contrived scenarios such as test dags which instantiate the reader in the context of a running task.


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

…ndler.

When task is running, handlers are moved from airflow.task to root.  Under normal circumstances this is a non-issue because the reader is instantiated in a webserver but there are certain contrived scenarios such as test dags which instantiate the reader in the context of a running task.
@dstandish dstandish marked this pull request as ready for review April 25, 2023 19:42
@dstandish dstandish merged commit 4a1d5b2 into apache:main Apr 25, 2023
@dstandish dstandish deleted the check-both-loggers-for-handler branch April 25, 2023 19:44
ephraimbuddy pushed a commit that referenced this pull request Apr 25, 2023
…ndler. (#30860)

When task is running, handlers are moved from airflow.task to root.  Under normal circumstances this is a non-issue because the reader is instantiated in a webserver but there are certain contrived scenarios such as test dags which instantiate the reader in the context of a running task.

(cherry picked from commit 4a1d5b2)
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label May 8, 2023
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.

2 participants