Re: airflow initdb failed when dag file reference undefined Variables

2016-08-10 Thread siddharth anand
Seems like a very reasonable question and a bug - feel free to file a bug (and fix it :-). The loading of a dag_bag happens in a few places and one of them seems to be getting triggered in this case. -s On Wed, Aug 3, 2016 at 12:58 AM, Wang Yajun wrote: > Hi > > the airflow initdb failed if dag

airflow initdb failed when dag file reference undefined Variables

2016-08-03 Thread Wang Yajun
Hi the airflow initdb failed if dags file in dag folder reference undefined Variables like that: * from airflow.models import Variable* *from airflow import DAG* * env = Variable.get('RS_ENV') #Note: RS_ENV is undefined* *dag = DAG()* ** it seems that airflow would load the dag files af