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:41:21 UTC

[GitHub] [airflow] casassg opened a new issue #8055: [AIP-31] Add "output" property in BaseOperator

casassg opened a new issue #8055: [AIP-31] Add "output" property in BaseOperator 
URL: https://github.com/apache/airflow/issues/8055
 
 
   
   **Description**
   
   Output property should return the default `XComArg` for the operator (using `return_value` as key). 
   
   **Use case / motivation**
   
   It can be used to get XComArg of an operator without needing to directly initialize XComArg explicitly. 
   
   ```
     get_ip = SimpleHttpOperator(
         task_id='get_ip', endpoint='get', method='GET', xcom_push=True
     )
   
   send_email = EmailOperator(
         task_id='send_email',
         to="example@example.com",
         subject='',
         html_content=get_ip.output
     )
   ```
   
   
   **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