Skip to content

[AIP-31] Resolve XComArg in template_fields #8053

@casassg

Description

@casassg

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.

Use case / motivation

  • Set explicit XCom values in templated_fields instead of using string templates.

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