[v3-3-test] Rename state-store cleanup-task-state-store command to state-store clean (#69316)#69322
Merged
Merged
Conversation
…`state-store clean` (#69316) The command added in 3.3.0rc1 repeated "state store" in both the group and the subcommand. Rename it to `airflow state-store clean`, mirroring `airflow db clean`. The old name only shipped in 3.3.0rc1, so renaming before GA keeps a single stable name for 3.3.0. Also make the help text and docs accurate about the current behavior: the command intentionally supports the metastore backend only and skips custom (worker-side) backends, and the docstring now explains why (correct cleanup of a worker-side backend needs to delete the DB refs and the backend data in order, which has to run where the backend's dependencies live, not on the server-side CLI). Fix a wrong class name (`MetastoreStateBackend` -> `MetastoreBackend`) in the docs. (cherry picked from commit 71be2b4) Co-authored-by: Kaxil Naik <kaxilnaik@gmail.com>
vatsrahul1001
approved these changes
Jul 3, 2026
henry3260
approved these changes
Jul 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The command added in 3.3.0rc1 repeated "state store" in both the group and the
subcommand. Rename it to
airflow state-store clean, mirroringairflow db clean. The old name only shipped in 3.3.0rc1, so renaming before GA keeps asingle stable name for 3.3.0.
Also make the help text and docs accurate about the current behavior: the
command intentionally supports the metastore backend only and skips custom
(worker-side) backends, and the docstring now explains why (correct cleanup of a
worker-side backend needs to delete the DB refs and the backend data in order,
which has to run where the backend's dependencies live, not on the server-side
CLI). Fix a wrong class name (
MetastoreStateBackend->MetastoreBackend) inthe docs.
(cherry picked from commit 71be2b4)
Co-authored-by: Kaxil Naik kaxilnaik@gmail.com