Separate Kubernetes pod_launcher from core airflow#15165
Conversation
|
cc: @SamWheating |
There was a problem hiding this comment.
Should we note in UPDATING.md that this class is deprecated?
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
8ddcf6c to
01b2f75
Compare
There was a problem hiding this comment.
This is all the executor used the pod launcher for?!
I was expecting this to be a much bigger change
There was a problem hiding this comment.
@ashb It makes sense. The KubernetesExecutor is fire and forget. We don't monitor the task via the pod launcher for the KubernetesExecutor, just monitor the task state via the job watcher.
166c529 to
c91b2e2
Compare
de374b3 to
883c55f
Compare
There was a problem hiding this comment.
Should we also add the deprecation warning directly here (or even move the warning from the old pod_launcher)? This way even if someone by mistake imports PodLauncher/PodStatus directly from there (because IDE will provide this as first-class option), will still get the warning.
There was a problem hiding this comment.
@potiuk I added the deprecation to the deprecated class. good catch!
There was a problem hiding this comment.
Yep.. Waiting for push to approve it ;)
Currently, the KubernetesPodOperator uses the pod_launcher class in airflow core. This means that if we need to fix a bug in the KubernetesPodOperator such as apache#15137 then the new cncf.kubernetes package will require an Airflow upgrade. Since we hope to release providers in a much faster cadence than Airflow core releases, we should separate this dependency.
82e88b9 to
5d0b0ca
Compare
|
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. |
apache#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
apache/airflow#15165 introduced a bug in the kubernetes_executor tests. This fixes that bug by changing pytest mock GitOrigin-RevId: e1beefc1123ba340a2565c743a0723d135bfc3a3
Currently, the KubernetesPodOperator uses the pod_launcher class in airflow core. This means that if we need to fix a bug in the KubernetesPodOperator such as #15137 then the new cncf.kubernetes package will require an Airflow upgrade. Since we hope to release providers in a much faster cadence than Airflow core releases, we should separate this dependency.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.