airflow.providers.cncf.kubernetes.pod_launcher_deprecated¶
Launches pods.
Module Contents¶
Classes¶
Status of the pods.  | 
|
Deprecated class for launching pods.  | 
- class airflow.providers.cncf.kubernetes.pod_launcher_deprecated.PodStatus[source]¶
 Status of the pods.
- class airflow.providers.cncf.kubernetes.pod_launcher_deprecated.PodLauncher(kube_client=None, in_cluster=True, cluster_context=None, extract_xcom=False)[source]¶
 Bases:
airflow.utils.log.logging_mixin.LoggingMixinDeprecated class for launching pods.
Please use airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager instead.
- start_pod(pod, startup_timeout=120)[source]¶
 Launch the pod synchronously and wait for completion.
- Parameters
 pod (kubernetes.client.models.v1_pod.V1Pod) –
startup_timeout (int) – Timeout for startup of the pod (if pod is pending for too long, fails task)
- Returns
 
- monitor_pod(pod, get_logs)[source]¶
 Monitor a pod and return the final state.
- Parameters
 pod (kubernetes.client.models.v1_pod.V1Pod) – pod spec that will be monitored
get_logs (bool) – whether to read the logs locally