mik-laj commented on issue #24546:
URL: https://github.com/apache/airflow/issues/24546#issuecomment-1160388641

   > Is there a reason to not run the policy before?
   
   Yes. We don't want to introduce an indirect representation of operators that 
will contain some arguments, but not a fully initialized object. This means 
that the operator must always be created in one step and it must be an "atomic" 
operation. To do it, we use 
[`apply_default`](https://github.com/apache/airflow/blob/2.1.0/airflow/models/baseoperator.py#L140-L188)
 operators that mutate constructor parameters. 
   
   On the other hand, we want the DAG policy to be executed only once for one 
DAG.


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to