ephraimbuddy commented on code in PR #43949:
URL: https://github.com/apache/airflow/pull/43949#discussion_r1842184411


##########
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:
   Updated this to have an option for clearing the dag history but not to clear 
as default. Please take a look



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