kaxil commented on a change in pull request #19471:
URL: https://github.com/apache/airflow/pull/19471#discussion_r746890230



##########
File path: airflow/cli/cli_parser.py
##########
@@ -977,6 +977,17 @@ class GroupCommand(NamedTuple):
             ARG_SAVE_DAGRUN,
         ),
     ),
+    ActionCommand(
+        name='reserialize',
+        help="Reserialize all DAGs by parsing the DagBag files",
+        description=(
+            "Drop all serialized dags from the metadata DB. This will cause 
all DAGs to be reserialized "
+            "from the DagBag folder. This can be helpful if your serialized 
DAGs get out of sync with the "
+            "version of Airflow that you are running."
+        ),
+        
func=lazy_load_command('airflow.cli.commands.dag_command.dag_reserialize'),

Review comment:
       (2) As the name is `reserialize` -- it will only reserialize if the 
scheduler is running. If the scheduler is not running for whatever reason, the 
users will have a wrong impression that `reserialize` does actually deserialize 
instead of just "clear"/delete




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