jedcunningham commented on code in PR #43949:
URL: https://github.com/apache/airflow/pull/43949#discussion_r1840908329
##########
airflow/cli/commands/dag_command.py:
##########
@@ -537,7 +538,11 @@ def dag_test(args, dag: DAG | None = None, session:
Session = NEW_SESSION) -> No
@provide_session
def dag_reserialize(args, session: Session = NEW_SESSION) -> None:
"""Serialize a DAG instance."""
-
session.execute(delete(SerializedDagModel).execution_options(synchronize_session=False))
+ if not (
+ args.yes or input("This will clean out all DAG versioning history.
Proceed? (y/n)").upper() == "Y"
Review Comment:
I'd argue we shouldn't delete all version history, just make reparse and
update serdag as needed.
--
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]