Skip to content

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

@casassg

Description

@casassg

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="[email protected]",
      subject='',
      html_content=get_ip.output
  )

Related Issues

Blocked by #8052

Metadata

Metadata

Assignees

Labels

AIP-31Task Flow API for nicer DAG definitionkind:featureFeature Requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions