ashb commented on issue #5574: [AIRFLOW-4941] Warn that default_args not 
applied via setter
URL: https://github.com/apache/airflow/pull/5574#issuecomment-511150505
 
 
   @milton0825 How does the context manager handle this case:
   
   ```
   dag = DAG('dag', default_args={'email_on_failure': False})
   
   with dag:
       op = BaseOperator(
           task_id='op',
           email_on_failure=True,  # happen to be the same as the default value 
in __init__ signature
       )
   ```
   
   Is the difference that @apply_defaults is applied at instantiation time? so 
this ends up with `email_on_failure=True`?

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to