You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vchiapaikeo (via GitHub)" <gi...@apache.org> on 2023/03/10 16:15:25 UTC

[GitHub] [airflow] vchiapaikeo commented on issue #29366: default_args feature incompatible with Dynamic Task Mapping

vchiapaikeo commented on issue #29366:
URL: https://github.com/apache/airflow/issues/29366#issuecomment-1464041406

   I also recently ran into this. Just wanted to share that the issue ends up propping up as a dag parsing error on the UI:
   
   ```
   Broken DAG: [/opt/airflow/dags/dataeng/batch/test_dynamic_spark.py] Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/mappedoperator.py", line 149, in __attrs_post_init__
       validate_mapping_kwargs(self.operator_class, "partial", self.kwargs)
     File "/home/airflow/.local/lib/python3.9/site-packages/airflow/models/mappedoperator.py", line 109, in validate_mapping_kwargs
       raise TypeError(f"{op.__name__}.{func}() got {error}")
   TypeError: BashOperator.partial() got unexpected keyword arguments 'project_id', 'gcp_conn_id', 'google_cloud_conn_id', 'impersonation_chain', 'auto_page_management', 'alert_in_test', 'abcdef'
   ```
   
   <img width="1202" alt="image" src="https://user-images.githubusercontent.com/9200263/224366996-bd46daef-62f0-48d4-8caa-ec9c7c586f2c.png">
   
   I'm actively looking for workarounds 👀 


-- 
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-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org