-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
add "enable_tracemalloc" to log memory usage in scheduler #42304
Conversation
a8cf17a
to
018f672
Compare
018f672
to
32662af
Compare
41f7848
to
91bc47f
Compare
Random thought: Maybe we move this tracemalloc behavior into sigusr1? Just seems like maybe having a debug dump like we do today in sigusr2 and keeping performance impacts to stuff in sigusr1 might be a better approach. |
0b43901
to
867908b
Compare
Sounds good! Just move it to SIGUSR1. Another thing I just noticed is that this might not be helpful if we start when receiving a signal. We probably still need to start it before that. Do you think making it a config makes sense? |
66268c7
to
c74f569
Compare
c74f569
to
431ea75
Compare
I'm thinking of merging this one later today if no one has more thoughts. Thanks! |
Why
add more information to ease the debugging process when receiving sigurs1
What
log memory usage in the scheduler when handling sigurs1 if enable_tracemalloc is set
^ 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.