-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
AIRFLOW-5581: Join KubernetesJobWatcher in terminate call and unblock queues from blocking forever #6237
AIRFLOW-5581: Join KubernetesJobWatcher in terminate call and unblock queues from blocking forever #6237
Conversation
118dee2
to
577ffbe
Compare
2f9afae
to
2bc46e3
Compare
2bc46e3
to
b04ceac
Compare
4e9d69b
to
1ab4c59
Compare
Codecov Report
@@ Coverage Diff @@
## master #6237 +/- ##
==========================================
- Coverage 80.04% 79.89% -0.16%
==========================================
Files 610 610
Lines 35264 35306 +42
==========================================
- Hits 28227 28207 -20
- Misses 7037 7099 +62
Continue to review full report at Codecov.
|
@kpathak13 LGTM. Can you rebase? I'll merge when ready :) |
1ab4c59
to
bf23c36
Compare
self.log.debug("Terminating kube_watcher...") | ||
self.kube_watcher.terminate() | ||
self.kube_watcher.join() | ||
self.log.debug("kube_watcher=%s alive?=%s", self.kube_watcher, self.kube_watcher.is_alive()) |
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.
This isn't useful - after a call to .join()
the kube_watcher should never be alive, right?
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.
Removed is alive?
and rebased.
… queues for safe shutdown
bf23c36
to
55ba865
Compare
The code looks okay, but the important question: how have you tested this? |
@ashb , I tested this on my k8 cluster:
Never observed race condition. |
Make sure you have checked all steps below.
Jira
Description
kubernetes_executor
moduleTests