You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/02 02:22:36 UTC

[GitHub] [airflow] casassg opened a new issue #8053: [AIP-31] Resolve XComArg in template_fields

casassg opened a new issue #8053: [AIP-31] Resolve XComArg in template_fields
URL: https://github.com/apache/airflow/issues/8053
 
 
   
   
   **Description**
   
   As a DAG Author, I want to set a templated_field as XComArg and for it to get resolved into the XCom object at execution time.
   
   _Proposed implementation_
   - Add a new check in `BaseOperator.render_template` that checks if the content is `XComArg` and applies the `get` method to replace the content. [Code location.](https://github.com/apache/airflow/blob/2869d3dae03f7d7bd5bea66c25ae0e0c97771281/airflow/models/baseoperator.py#L801)
   
   **Use case / motivation**
   
   - Set explicit XCom values in `templated_fields` instead of using string templates.
   
   
   **Related Issues**
   
   Blocked by: #8052

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services