Practical Guide to Using Airflow XComs for Inter‑Task Data Transfer
Pass data between Airflow tasks with XComs—understand limits, register custom serializers, and choose between in‑memory and external storage for optimal performance.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Pass data between Airflow tasks with XComs—understand limits, register custom serializers, and choose between in‑memory and external storage for optimal performance.
Airflow 2.3+ dynamic task mapping lets you create task instances at runtime from an upstream list. Example shows S3 file processing with .expand(), plus XCom size and fan‑out guardrails.
Learn how the @task decorator turns Python functions into tasks with automatic XCom handling, making DAGs cleaner and easier to maintain.
Learn how to use the Apache Airflow TaskFlow API to eliminate XCom boilerplate, manage data boundaries, and avoid metadata database bloat in your pipelines.
A decision guide for selecting an Apache Airflow executor (Local, Celery, Kubernetes, CeleryKubernetes) based on workload scale, infrastructure constraints, and operational trade-offs, with configuration examples and validation steps.
Goal Reduce operating cost for a low‑traffic Apache Airflow deployment by possibly stopping the scheduler node between DAG runs while using LocalExecutor. Constraints and uncertainties The decision depends on the catchup setting, whether any DAGs use data‑aware timetables, the acceptable latency for triggering new runs, and the impact on DAG parsing, health‑
When transitioning from a local development environment to a production cluster, DAGs that rely on shared local filesystems often fail. The LocalExecutor executes tasks as subprocesses on the scheduler node, allowing tasks to read and write files from the same /tmp directory seamlessly. However, moving to CeleryExecutor distributes tasks across remote worker