Giới thiệu về Apache Airflow bằng Python
Mike Metzger
Data Engineer
Dag, hay Directed Acyclic Graph:


Ví dụ Dag (Taskflow API):
from airflow.sdk import dagfrom pendulum import datetime @dag( dag_id='etl_workflow', email='[email protected]', start_date=datetime(2026, 3, 15, tz="UTC") )def etl_workflow(): ...etl_workflow()
airflow có nhiều lệnh conairflow -h - trợ giúp và mô tả lệnh con
Lệnh con cho Dag
airflow dags list - liệt kê mọi Dag đã nhận diệnairflow dags reserialize - buộc Airflow nạp lại tệp Dagairflow tasks test - chạy một task cụ thểDùng công cụ dòng lệnh để:

Dùng Python để:

Giới thiệu về Apache Airflow bằng Python