Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIP-31] Add "output" property in BaseOperator #8055

Closed
casassg opened this issue Apr 2, 2020 · 0 comments · Fixed by #8652
Closed

[AIP-31] Add "output" property in BaseOperator #8055

casassg opened this issue Apr 2, 2020 · 0 comments · Fixed by #8652
Assignees
Labels
AIP-31 Task Flow API for nicer DAG definition kind:feature Feature Requests

Comments

@casassg
Copy link
Contributor

casassg commented Apr 2, 2020

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

@casassg casassg added the kind:feature Feature Requests label Apr 2, 2020
@turbaszek turbaszek added the AIP-31 Task Flow API for nicer DAG definition label Apr 2, 2020
@turbaszek turbaszek assigned turbaszek and unassigned casassg Apr 24, 2020
turbaszek added a commit to databand-ai/airflow that referenced this issue Apr 24, 2020
jonathanshir pushed a commit to databand-ai/airflow that referenced this issue Apr 30, 2020
Add output property to BaseOperator

closes: apache#8055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-31 Task Flow API for nicer DAG definition kind:feature Feature Requests
Projects
None yet
2 participants