kaxil commented on pull request #8728:
URL: https://github.com/apache/airflow/pull/8728#issuecomment-705738620


   > @kaxil I use context manager and `as dag` for every DAG I have.
   > the "as dag" is not the dag_id. why it matters?
   
   You are right, in theory it should not, although I roughly remember I had to 
change:
   
   ```
   with DAG(dag_id='d1') as dag:
        t1 = BashOperator(...)
   
   with DAG(dag_id='d2') as dag:
        t1 = BashOperator(...)
   ```
   
   to
   
   ```
   with DAG(dag_id='d1') as dag_1:
        t1 = BashOperator(...)
   
   with DAG(dag_id='d2') as dag_2:
        t1 = BashOperator(...)
   ```
   
   Can't remember why and when though
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to