Airflow - Xcom Exclusive

Apache Airflow has become the de facto standard for workflow orchestration. At its heart lies a simple but powerful mechanism for task-to-task communication: (short for "Cross-Communication"). By default, Airflow allows any task to push any piece of data—whether it’s a filename, a model accuracy score, or a JSON blob—to be pulled by any downstream task.

@task def multi_pull(**context): count = context['ti'].xcom_pull(key='count', task_ids='multi_push') status = context['ti'].xcom_pull(key='status', task_ids='multi_push') main = context['ti'].xcom_pull(task_ids='multi_push') # default key airflow xcom exclusive

If using traditional operators, you can restrict data retrieval by providing specific arguments: Apache Airflow has become the de facto standard

Implement with Redis:

Thông tin liên hệ

    • 1

      Step 1

    • 2

      Step 2

    • 3

      Step 3

    1/3

    Step 1

    This will close in 0 seconds