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

Restore function scoped httpx import in file_task_handler for perf #36753

Merged

Conversation

vchiapaikeo
Copy link
Contributor

@vchiapaikeo vchiapaikeo commented Jan 12, 2024

This is a follow up to #35536 - moving the httpx import back to function scoped since it was moved there for performance purposes (see 1a8a897#diff-e7f34f73940eb52d92bb991abedc1c963431c5373c12dff739c8fb7d03e93d3aL24). This means we need to perform the import twice.

Checked and ensured that logs on EmptyOperator still work as they did before:

image

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

@vchiapaikeo
Copy link
Contributor Author

@eladkal , can you take a look at this when you have a moment?

@eladkal eladkal added this to the Airflow 2.8.1 milestone Jan 12, 2024
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jan 12, 2024
@eladkal eladkal merged commit c792b25 into apache:main Jan 12, 2024
55 checks passed
ephraimbuddy pushed a commit that referenced this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants