amoghrajesh commented on code in PR #46929:
URL: https://github.com/apache/airflow/pull/46929#discussion_r1963628331
##########
airflow/models/xcom.py:
##########
@@ -154,6 +154,9 @@ def set(
"""
from airflow.models.dagrun import DagRun
+ if not key:
+ raise ValueError(f"XCom key must be a non-empty string. Received:
{key!r}")
+
Review Comment:
Maybe adding a check for empty string in
`airflow/api_fastapi/execution_api/routes/xcoms.py` and also in the task sdk
would be nice
--
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]