From b343aee594bf084e270bbf44925a71d2132bb67c Mon Sep 17 00:00:00 2001 From: nailo2c Date: Mon, 13 Jul 2026 17:45:56 +0800 Subject: [PATCH] Clarify the dags reserialize command scope --- airflow-core/docs/howto/usage-cli.rst | 16 ++++++++++++++++ docs/spelling_wordlist.txt | 1 + 2 files changed, 17 insertions(+) diff --git a/airflow-core/docs/howto/usage-cli.rst b/airflow-core/docs/howto/usage-cli.rst index fbecf38dd14a3..d96cf5331f95f 100644 --- a/airflow-core/docs/howto/usage-cli.rst +++ b/airflow-core/docs/howto/usage-cli.rst @@ -334,6 +334,22 @@ For a mapping between Airflow version and Alembic revision see :doc:`/migrations It's highly recommended that you reserialize your Dags with ``dags reserialize`` after you finish downgrading your Airflow environment (meaning, after you've downgraded the Airflow version installed in your Python environment, not immediately after you've downgraded the database). This is to ensure that the serialized Dags are compatible with the downgraded version of Airflow. +.. _cli-reserialize-dags: + +Reserializing Dags +------------------ + +The ``dags reserialize`` command parses the Dag files visible to it and updates their +serialized representation in the metadata database. It is a maintenance command, useful +for example to refresh serialized Dags after upgrading or downgrading Airflow. + +.. note:: + + ``airflow dags reserialize`` serializes the Dag files visible to the process + running it. It does not deploy or synchronize Dag source files, and does not + replace normal Dag Processor bundle refreshes. In a distributed deployment, + run it from an environment that sees the same Dag bundle contents as the Dag Processor. + .. _cli-export-connections: Exporting Connections diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index 728ab391dc75b..6309b96e3c115 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -1420,6 +1420,7 @@ reqs requeue requeued reserialize +Reserializing resetdb resizable ResourceRequirements