airflow.providers.cncf.kubernetes.kubernetes_helper_functions
¶
Module Contents¶
Functions¶
|
Generate unique pod ID given a dag_id and / or task_id. |
|
Build a TaskInstanceKey based on pod annotations. |
|
Attributes¶
- airflow.providers.cncf.kubernetes.kubernetes_helper_functions.create_pod_id(dag_id=None, task_id=None, *, max_length=80, unique=True)[source]¶
Generate unique pod ID given a dag_id and / or task_id.
The default of 80 for max length is somewhat arbitrary, mainly a balance between content and not overwhelming terminal windows of reasonable width. The true upper limit is 253, and this is enforced in construct_pod.