Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions airflow-core/docs/howto/usage-cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,7 @@ reqs
requeue
requeued
reserialize
Reserializing
resetdb
resizable
ResourceRequirements
Expand Down
Loading