Content-Length: 266853 | pFad | http://github.com/apache/airflow/pull/50682

90 Fix log streaming when EXECUTE_TASKS_NEW_PYTHON_INTERPRETER is enabled in Celery executor by vatsrahul1001 · Pull Request #50682 · apache/airflow · GitHub
Skip to content

Fix log streaming when EXECUTE_TASKS_NEW_PYTHON_INTERPRETER is enabled in Celery executor #50682

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

Merged

Conversation

vatsrahul1001
Copy link
Contributor

@vatsrahul1001 vatsrahul1001 commented May 16, 2025

Elasticsearch (when configured to output json to stdout) requires, naturally, that the logs are sent as json to stdout.

Currently when running with EXECUTE_TASKS_NEW_PYTHON_INTERPRETER set to true, we use check_output, and we do nothing with the output. This PR implements @dstandish suggestion mentioned in #47420

TESTING
Before, logs were not coming with with ES when EXECUTE_TASKS_NEW_PYTHON_INTERPRETER =True
image

After
Logs are coming fine now
image

Also, I have verified in AWS there is no regression after this fix
image

closes: #47420


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

@vatsrahul1001 vatsrahul1001 merged commit e4473bb into apache:main May 20, 2025
66 checks passed
@vatsrahul1001 vatsrahul1001 deleted the celery-executor-subprocess-logging branch May 20, 2025 07:47
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.

EXECUTE_TASKS_NEW_PYTHON_INTERPRETER setting no play nice with elasticsearch
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50682

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy