From 538612c3326b5fd0be4f4114f85e6f3063b5d49c Mon Sep 17 00:00:00 2001 From: Dmytro Kazanzhy Date: Mon, 6 Dec 2021 01:03:38 +0200 Subject: [PATCH] Add xcom clearing behaviour on task retries (#19968) Co-authored-by: Dmytro Kazanzhy --- docs/apache-airflow/concepts/xcoms.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/apache-airflow/concepts/xcoms.rst b/docs/apache-airflow/concepts/xcoms.rst index 315c872ace424..eb11ff707fa5d 100644 --- a/docs/apache-airflow/concepts/xcoms.rst +++ b/docs/apache-airflow/concepts/xcoms.rst @@ -38,6 +38,9 @@ You can also use XComs in :ref:`templates `:: XComs are a relative of :doc:`variables`, with the main difference being that XComs are per-task-instance and designed for communication within a DAG run, while Variables are global and designed for overall configuration and value sharing. +:: + + Note: If the first task run is not succeeded then on every retry task XComs will be cleared to make the task run idempotent. Custom Backends ---------------