Mark M
Mark M

Reputation: 525

Difference between importing airflow.DAG and airflow.models.DAG

Is there any difference between from airflow import DAG (used in the tutorial in the docs) and from airflow.models import DAG (used in the example DAGs)?

I'm new to Airflow and unsure if they should be used differently.

Upvotes: 5

Views: 2070

Answers (1)

y2k-shubham
y2k-shubham

Reputation: 11627

Is there any difference?

No


Looking at the source code, following should behave identical

Upvotes: 8

Related Questions