Skip to content

Handle clearing XCom in run Execution endpoint #45419

@kaxil

Description

@kaxil

We should clear XCom value when task starts execution in the Execution API server. This is how it is done now:

# Don't clear Xcom until the task is certain to execute, and check if we are resuming from deferral.
if not self.next_method:
self.clear_xcom_data()

Ideally, this can be done in the run endpoint. We need to ensure we don't clear it for Deferrable tasks.

Port the necessary tests from current execution model to the API server

Metadata

Metadata

Assignees

Labels

area:APIAirflow's REST/HTTP API

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions