uranusjr commented on a change in pull request #22385: URL: https://github.com/apache/airflow/pull/22385#discussion_r830730423
########## File path: airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py ########## @@ -283,7 +283,7 @@ def _get_ti_pod_labels(context: Optional[dict] = None, include_try_number: bool return {} ti = context['ti'] - run_id = getattr(ti, 'run_id') or context['run_id'] + run_id = getattr(ti, 'run_id', None) or context['run_id'] Review comment: I think this one’s mentioned in another PR; it should probably just be `context["run_id"]` since the key is available since basically forever. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org