Airflow로 데이터 파이프라인 구축하기
Volker Janz
Senior Developer Advocate at Astronomer

xcom_push()와 xcom_pull()을 명시적으로 사용
@task의 반환값은 XComArg가 됩니다
@task def get_config(): return {"name": "daily_etl"} @task def run_pipeline(config): print(config["name"])config = get_config() # XComArgrun_pipeline(config) # dependency + data
get_timestamp = BashOperator( task_id="get_timestamp", bash_command="date +%Y-%m-%d") @task def log_timestamp(ts_value): print(f"Timestamp: {ts_value}")log_timestamp(get_timestamp.output)


AIRFLOW__COMMON_IO__XCOM_OBJECTSTORAGE_THRESHOLD: 임계값에 도달했을 때만 XCom을 오브젝트 스토리지에 저장합니다Airflow로 데이터 파이프라인 구축하기