forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dag reserialize command (apache#43949)
* Update dag reserialize command Now that we have versioning, users must be sure they want to use the dags reserialize command, as it deletes dag history. I updated the command to ensure users know it will delete DAG history and answer yes for it to continue. The DagVersion is deleted and since it has foreignkey to SerializedDagModel and DagCode, those will also get deleted. Also updated the _reserialize function at DB upgrade so that it doesn't delete the serializedDag since that won't be necessary Updated the test to use session fixture instead of create_session * add --clear-history to dag reserialize command * Add news fragment item * Remove clear-history * fix test * fixup! fix test * Update newsfragments/43949.significant.rst
- Loading branch information
1 parent
f8a61cb
commit dc86801
Showing
5 changed files
with
32 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
This option has been removed as it is no longer needed. We have implemented DAG versioning and can | ||
no longer delete serialized dag without going through ``airflow db-clean`` command. This command is now only for reserializing DAGs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters