spark_on_k8s.utils.console_models¶
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.
AirflowTaskContext
¶
Bases: BaseModel
Non-secret task identity recorded on an operator-created driver pod.
Source code in spark_on_k8s/utils/console_models.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
task_key()
¶
Digest the identity compared by owns_same_task into a Kubernetes label value.
Every attempt of one task instance has the same key, so a retry can select the drivers of earlier attempts. The try number is deliberately excluded.
Source code in spark_on_k8s/utils/console_models.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
ConsoleApplication
¶
Bases: BaseModel
Display metadata shared by the standalone console and embedded clients.
Source code in spark_on_k8s/utils/console_models.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
ConsoleDiagnostics
¶
Bases: BaseModel
Diagnosis and ownership metadata from the same inspected driver.
Source code in spark_on_k8s/utils/console_models.py
91 92 93 94 95 | |