quick-carpet-67110
06/05/2025, 11:37 AMpython flow.py --environment=pypi --with retry airflow create flow_dag.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/python3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/opt/python3.11/lib/python3.11/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/etc/airflow/config/airflow_local_settings.py", line 62, in pod_mutation_hook
and any(env_var.name == "AIRFLOW_IS_K8S_EXECUTOR_POD" for env_var in container.env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/etc/airflow/config/airflow_local_settings.py", line 62, in <genexpr>
and any(env_var.name == "AIRFLOW_IS_K8S_EXECUTOR_POD" for env_var in container.env)
^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
thankful-ambulance-42457
06/05/2025, 1:24 PMquick-carpet-67110
06/05/2025, 3:08 PMMetaflow 2.15.15 and airflow 2.9.3
quick-carpet-67110
06/05/2025, 3:08 PMancient-application-36103
06/05/2025, 7:11 PMthankful-ambulance-42457
06/06/2025, 1:34 PMquick-carpet-67110
06/10/2025, 8:05 AMthankful-ambulance-42457
06/10/2025, 8:41 AMquick-carpet-67110
06/12/2025, 11:19 AMquick-carpet-67110
06/13/2025, 11:17 AMfrom metaflow.metaflow_config import (
AIRFLOW_KUBERNETES_CONN_ID,
AIRFLOW_KUBERNETES_KUBECONFIG_CONTEXT,
AIRFLOW_KUBERNETES_KUBECONFIG_FILE,
thankful-ambulance-42457
06/13/2025, 11:31 AMmetaflow.metaflow_config
is set through:
⢠a prefixed environment variable, e.g. METAFLOW_AIRFLOW_KUBERNETES_CONN_ID
⢠a key-value in the metaflow profile json file usually in ~/.metaflowconfigthankful-ambulance-42457
06/13/2025, 11:32 AM