spark_on_k8s.utils.spark_app_status¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
SparkAppDeletedError
¶
Bases: LookupError
The driver disappeared before a final status was observed, so the outcome is unknown.
Source code in spark_on_k8s/utils/spark_app_status.py
21 22 | |
SparkAppStatus
¶
Bases: StrEnum
Spark app status.
Source code in spark_on_k8s/utils/spark_app_status.py
11 12 13 14 15 16 17 18 | |
driver_container_name(pod)
¶
Name the submitted driver container, even if an admission webhook prepended a sidecar.
Source code in spark_on_k8s/utils/spark_app_status.py
63 64 65 66 67 68 69 70 71 | |
driver_pod_selector(app_id)
¶
Select only driver pods: other pods may carry an application's ID label.
Source code in spark_on_k8s/utils/spark_app_status.py
49 50 51 | |
get_app_status(pod)
¶
Get app status.
Source code in spark_on_k8s/utils/spark_app_status.py
35 36 37 38 39 40 41 42 43 44 45 46 | |
is_transient_status_code(status)
¶
Whether a Kubernetes API response status may clear on its own.
Source code in spark_on_k8s/utils/spark_app_status.py
30 31 32 | |
select_driver_pod(pods, app_id)
¶
Return the only driver for an application ID instead of acting on an arbitrary match.
Source code in spark_on_k8s/utils/spark_app_status.py
54 55 56 57 58 59 60 | |