Skip to content

Fix airlfow logger reconfiguration in workload executor - #53499

Closed
rjtshrm wants to merge 1 commit into
apache:mainfrom
rjtshrm:fix-executor-logging-reconfiguration
Closed

rjtshrm wants to merge 1 commit into
apache:mainfrom
rjtshrm:fix-executor-logging-reconfiguration

Conversation

@rjtshrm

@rjtshrm rjtshrm commented Jul 18, 2025

Copy link
Copy Markdown

Related #52501


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

@boring-cyborg

boring-cyborg Bot commented Jul 18, 2025

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 (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our pre-commits 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

@rjtshrm
rjtshrm force-pushed the fix-executor-logging-reconfiguration branch from dd7e88a to e894397 Compare July 18, 2025 14:58
@rjtshrm
rjtshrm force-pushed the fix-executor-logging-reconfiguration branch from e894397 to 5901b6f Compare July 18, 2025 14:59

@ashb ashb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is wrong for every other logger, and we are working to remove imports of airflow-core within the task SDK, so I'm afraid this solution is not the right one

@rjtshrm

rjtshrm commented Jul 19, 2025

Copy link
Copy Markdown
Author

Ok, may I know the reason to reconfigure logging when executing workloads when it is already initialized by Airflow. Also if we have to reconfigure it, we can use the same handlers again instead of setting some defaults and removing existing ones.

@ashb

ashb commented Jul 21, 2025

Copy link
Copy Markdown
Member

Logging of tasks in Airflow 3 has massively and fundamentally changed. The tasks process now only write logs to a socket as JSON connected to the supervisor, and it is the supervisor process that is responsible for uploading/sending those to remote storage or logging engine.

@rjtshrm

rjtshrm commented Jul 22, 2025

Copy link
Copy Markdown
Author

Hey @ashb, I’m currently not familiar with the internal structure of the Airflow codebase. However, as we’re all aware, there’s an open issue with CloudWatch logging on the Kubernetes cluster.
This issue has been open for quite some time and is blocking many of us from upgrading to Airflow 3.x. Could someone from the team look into this internally? I can close this PR then.

@ashb

ashb commented Jul 22, 2025

Copy link
Copy Markdown
Member

Yes I'll try and get to this soon, once I've finished off my current PR (this week sometime) to unblock other folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants