apache-airflow

Apache Airflow DAG cannot import local module

Apache Airflow DAG cannot import local module Question: I do not seem to understand how to import modules into an apache airflow DAG definition file. I would want to do this to be able to create a library which makes declaring tasks with similar settings less verbose, for instance. Here is the simplest example I …

Total answers: 4

How to add new DAGs to Airflow?

How to add new DAGs to Airflow? Question: I have defined a DAG in a file called tutorial_2.py (actually a copy of the tutorial.py provided in the airflow tutorial, except with the dag_id changed to tutorial_2). When I look inside my default, unmodified airflow.cfg (located in ~/airflow), I see that dags_folder is set to /home/alex/airflow/dags. …

Total answers: 4