On Wed, 27 Apr 2022 at 15:27, Constance Martineau
<consta...@astronomer.io.invalid> wrote:
> Am intrigued. Curious about dynamic dag pattern, where you create the DAG 
> object in a create_dag function and adding the DAG to globals. Would this new 
> way prevent someone from modifying the dag object within the function, or 
> returning it?

It would not change the current way of programming DAGs. The only
change is that if you call the DAG constructor (or a function that
does so including one using the @dag decorator), then that DAG will be
made available regardless of whether you assign it a top-level
variable or not.

Cheers

Reply via email to