You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dabeeru (via GitHub)" <gi...@apache.org> on 2025/07/04 15:41:39 UTC

[I] Allow to switch DAG run to newer dag version [airflow]

dabeeru opened a new issue, #52884:
URL: https://github.com/apache/airflow/issues/52884

   ### Description
   
   In Airflow 3, when using versioned DAG bundles, the DAG definition is serialized and associated with a DAG run at the time of its creation. This feature would enable changing that association to another available DAG version for a specific DAG run—or preferably for a group of runs—so that after clearing the DAG run, the updated definition, including any structural changes to the DAG, would be applied.
   
   ### Use case/motivation
   
   This feature would allow historical DAG runs to reload the updated DAG structure when clearing. Currently, if the DAG definition has changed (e.g., tasks have been added or removed), rerunning past DAG runs won't reflect those changes because task instances remain tied to the serialized DAG version that existed at the time they were originally created. While current behaviour might be desired and should remain as default, allowing to change DAG version associated to a DAG run would make it more flexible for Airflow operators.
   
   ### Related issues
   
   [49639](https://github.com/apache/airflow/issues/49639)
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Allow to switch DAG run to newer dag version [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #52884:
URL: https://github.com/apache/airflow/issues/52884#issuecomment-3041316767

   I guess this should be resolved with #52177 where users can opt-in to use latest version when clearing an older dagrun. cc: @ephraimbuddy 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Allow to switch DAG run to newer dag version [airflow]

Posted by "dabeeru (via GitHub)" <gi...@apache.org>.
dabeeru commented on issue #52884:
URL: https://github.com/apache/airflow/issues/52884#issuecomment-3050060112

   Looks good, closing this one then.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Allow to switch DAG run to newer dag version [airflow]

Posted by "dabeeru (via GitHub)" <gi...@apache.org>.
dabeeru closed issue #52884: Allow to switch DAG run to newer dag version
URL: https://github.com/apache/airflow/issues/52884


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org