You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/06 09:19:09 UTC

[GitHub] [airflow] kaxil commented on a diff in pull request #26170: Add subdir parameter to dags reserialize command

kaxil commented on code in PR #26170:
URL: https://github.com/apache/airflow/pull/26170#discussion_r963469974


##########
airflow/cli/commands/dag_command.py:
##########
@@ -503,6 +503,5 @@ def dag_reserialize(args, session: Session = NEW_SESSION):
     session.query(SerializedDagModel).delete(synchronize_session=False)
 
     if not args.clear_only:
-        dagbag = DagBag()
-        dagbag.collect_dags(only_if_updated=False, safe_mode=False)

Review Comment:
   Since `DagBag().file_last_changed` will be empty, I _think_ it won't make a difference if `only_if_updated` is set to `True` or `False`



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