-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Fix webserver exiting when gunicorn master crashes #13518
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
Conversation
…pache#13469) A key consequence of this fix is that webserver will properly exit when gunicorn master dies and stops responding to signals.
|
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest master or amend the last commit of the PR, and push it with --force-with-lease. |
| self.num_workers_expected - num_workers_running, self.worker_refresh_batch_size | ||
| ) | ||
| self.log.debug( | ||
| self.log.info( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for changing the log level? @drago-f5a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaxil
This action (spawning new workers) is taken specifically to correct an issue that was detected and logged at the error level few lines of code above. Given the prior error level log, it seemed reasonable to log an attempt at corrective action at the info level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, can you create a new PR please to change the log level back to info. I revert that changed before merging the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaxil Sure, I'll do it and I'll tag you on it.
|
Awesome work, congrats on your first merged pull request! |
…#13469)
A key consequence of this fix is that webserver will properly
exit when gunicorn master dies and stops responding to signals.