jedcunningham commented on code in PR #43949:
URL: https://github.com/apache/airflow/pull/43949#discussion_r1842448758
##########
newsfragments/43949.significant.rst:
##########
@@ -0,0 +1,5 @@
+The ``--clear-only`` option of ``airflow dags reserialize`` command is now
removed.
+
+The ``--clear-only`` option was added to clear the serialized DAGs without
reserializing them.
Review Comment:
I almost wonder if we should have a separate command for the "clear only"
behavior. I can see that still being valuable as reserializing everything can
be slow!
##########
airflow/cli/cli_config.py:
##########
@@ -967,10 +967,10 @@ def string_lower_type(val):
)
# reserialize
-ARG_CLEAR_ONLY = Arg(
- ("--clear-only",),
+ARG_CLEAR_HISTORY = Arg(
+ ("--clear-history",),
action="store_true",
- help="If passed, serialized DAGs will be cleared but not reserialized.",
+ help="If passed, DAGs history will be cleared.",
Review Comment:
Hmm, I wonder if we should not cascade and remove "all" history like dagruns
too?
--
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]