-
Notifications
You must be signed in to change notification settings - Fork 16.4k
[AIRFLOW-3412] Fix kubernetes executor to delete pods after termination #4268
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
| execution_date=self._datetime_to_label_safe_datestring(execution_date), | ||
| airflow_command=command, kube_executor_config=kube_executor_config | ||
| airflow_command=command, kube_executor_config=kube_executor_config, | ||
| try_number=str(try_number) |
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.
Please, keep trailing comma.
| 'task_id': task_id, | ||
| 'execution_date': execution_date | ||
| 'execution_date': execution_date, | ||
| 'try_number': try_number |
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.
Ditto.
|
Any idea on what could have stalled test_volume_mount? I am getting flooded with stale pods because of this issue |
|
I deployed v-1-10-stable in my Kubernetes cluster and reproduced the same issue, this PR solved it on my side as well |
|
Can we get this merged? This is pretty critical for Airflow to work properly in Kubernetes. |
|
I am facing one issue where KubernetesExecutor is not launching pods as soon as reaches parallelism even though pods are completed. |
|
I think we're observing the same issue @singhania I'll try to reproduce tomorrow morning |
|
One more observation, If i don't set parallelism then also after some 30 completed pods it stops creating new pods. After debugging found that key is not getting created properly and hence running task are not getting popped after state change. |
|
I found a similar PR #4163. Are they fixing the same thing? |
|
PTAL @dimberman |
|
I have created a PR #4471 which along with this PR will solve the issue of pods not being created (https://issues.apache.org/jira/browse/AIRFLOW-3652). |
|
hi there, wanted to let you know I've cherry picked this PR and I have been running it in prod for 2 weeks in here https://github.com/dmateusp/incubator-airflow/tree/v1-10-stable-AIRFLOW-3022-AIRFLOW-3412-AIRFLOW-3652 |
|
Looks like another PR was merged with similar function (https://github.com/apache/airflow/pull/4163/files), probably that can be closed, correct? |
|
@spinus Yes, I'll close that now as irrelevant. |
Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Documentation
Code Quality
flake8