Skip to content

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
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
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