uranusjr commented on code in PR #64577:
URL: https://github.com/apache/airflow/pull/64577#discussion_r3026343842
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_dag_run.py:
##########
@@ -158,7 +160,16 @@ def setup(request, dag_maker, session=None):
ti.task = task
ti.state = State.SUCCESS
session.merge(ti)
- ti.xcom_push("return_value", f"result_{i}")
+ XComModel.set(
+ key="return_value",
+ value=f"result_{i}",
+ task_id=ti.task_id,
+ dag_id=ti.dag_id,
+ run_id=ti.run_id,
+ map_index=ti.map_index,
+ dag_result=task.returns_dag_result,
Review Comment:
`ti.xcom_pull` does not provide this argument (and it shouldn’t since user
shouldn’t manually push a dag result) so switching to the internal API.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]