You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/08/12 10:14:00 UTC
[airflow] branch main updated: doc: KPO - xcom - only valid json content (#33224)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1695a63291 doc: KPO - xcom - only valid json content (#33224)
1695a63291 is described below
commit 1695a632918370513efe6a2fdf9ea4d676cee51d
Author: raphaelauv <ra...@users.noreply.github.com>
AuthorDate: Sat Aug 12 12:13:51 2023 +0200
doc: KPO - xcom - only valid json content (#33224)
---
docs/apache-airflow-providers-cncf-kubernetes/operators.rst | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/apache-airflow-providers-cncf-kubernetes/operators.rst b/docs/apache-airflow-providers-cncf-kubernetes/operators.rst
index bf46c2954e..4c1dd9ac86 100644
--- a/docs/apache-airflow-providers-cncf-kubernetes/operators.rst
+++ b/docs/apache-airflow-providers-cncf-kubernetes/operators.rst
@@ -152,6 +152,10 @@ XCom values differently than other operators. In order to pass a XCom value
from your Pod you must specify the ``do_xcom_push`` as ``True``. This will create a sidecar container that runs
alongside the Pod. The Pod must write the XCom value into this location at the ``/airflow/xcom/return.json`` path.
+.. note::
+ An invalid json content will fail, example ``echo 'hello' > /airflow/xcom/return.json`` fail and ``echo '\"hello\"' > /airflow/xcom/return.json`` work
+
+
See the following example on how this occurs:
.. exampleinclude:: /../../tests/system/providers/cncf/kubernetes/example_kubernetes.py