This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 542ab65b4d3 Move airflowctl assets state store commands to a subgroup
(#75703)
542ab65b4d3 is described below
commit 542ab65b4d3cc6096f08acdaada1aa5f89306779
Author: Justin Pakzad <[email protected]>
AuthorDate: Sun Nov 15 19:57:54 2026 -0500
Move airflowctl assets state store commands to a subgroup (#75703)
* Move airflowctl assets state store commands to a subgroup
* Fix asset commands in MIN_AIRFLOW_VERSIONS
---
.../airflowctl_tests/test_airflowctl_commands.py | 18 +--
airflow-ctl/docs/images/command_hashes.txt | 2 +-
airflow-ctl/docs/images/output_assets.svg | 166 +++++++++------------
airflow-ctl/src/airflowctl/ctl/cli_config.py | 1 +
airflow-ctl/src/airflowctl/ctl/help_texts.yaml | 1 +
.../tests/airflow_ctl/ctl/test_cli_config.py | 1 +
.../ci/prek/check_airflowctl_command_coverage.py | 1 +
7 files changed, 83 insertions(+), 107 deletions(-)
diff --git
a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
index e7eda083307..96a5f736c9e 100644
--- a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
+++ b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
@@ -59,12 +59,12 @@ TEST_COMMANDS = [
"assets list",
"assets get 1",
"assets create-event --asset-id=1",
- "assets set-state-store 1 test_key test_value",
- "assets get-state-store 1 test_key",
- "assets list-state-store 1",
- "assets delete-state-store 1 test_key",
- "assets set-state-store 1 clear_key value",
- "assets clear-state-store 1",
+ "assets state-store set 1 test_key test_value",
+ "assets state-store get 1 test_key",
+ "assets state-store list 1",
+ "assets state-store delete 1 test_key",
+ "assets state-store set 1 clear_key value",
+ "assets state-store clear 1",
# Backfill commands
"backfill list example_bash_operator",
# Config commands
@@ -169,11 +169,7 @@ TEST_COMMANDS = [
# The first Airflow version whose API serves each command, keyed by
`_get_command_id`.
MIN_AIRFLOW_VERSIONS = {
- "assets set-state-store": Version("3.3.0"),
- "assets get-state-store": Version("3.3.0"),
- "assets list-state-store": Version("3.3.0"),
- "assets delete-state-store": Version("3.3.0"),
- "assets clear-state-store": Version("3.3.0"),
+ "assets state-store": Version("3.3.0"),
"taskinstances state-store": Version("3.3.0"),
}
diff --git a/airflow-ctl/docs/images/command_hashes.txt
b/airflow-ctl/docs/images/command_hashes.txt
index 6b663dd3048..3e57380b614 100644
--- a/airflow-ctl/docs/images/command_hashes.txt
+++ b/airflow-ctl/docs/images/command_hashes.txt
@@ -1,5 +1,5 @@
main:2c358f5fc894541cab11854dcd67658a
-assets:fa2bceb5343af0d3cda2a1594d95787e
+assets:5e80298e778521b98b4244a7f2ef355d
auth:5aeefc79ee662adbd7cbfb51e1c1de4b
backfill:74c8737b0a62a86ed3605fa9e6165874
config:a3d936cb15fe3b547bf6c82cf93d923f
diff --git a/airflow-ctl/docs/images/output_assets.svg
b/airflow-ctl/docs/images/output_assets.svg
index b07731e2f8c..347deb7df78 100644
--- a/airflow-ctl/docs/images/output_assets.svg
+++ b/airflow-ctl/docs/images/output_assets.svg
@@ -1,4 +1,4 @@
-<svg class="rich-terminal" viewBox="0 0 933 928.4"
xmlns="http://www.w3.org/2000/svg">
+<svg class="rich-terminal" viewBox="0 0 933 782.0"
xmlns="http://www.w3.org/2000/svg">
<!-- Generated with Rich https://www.textualize.io -->
<style>
@@ -19,182 +19,158 @@
font-weight: 700;
}
- .terminal-4122115999-matrix {
+ .terminal-1773328529-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
- .terminal-4122115999-title {
+ .terminal-1773328529-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
- .terminal-4122115999-r1 { fill: #ff8700 }
-.terminal-4122115999-r2 { fill: #c5c8c6 }
-.terminal-4122115999-r3 { fill: #808080 }
-.terminal-4122115999-r4 { fill: #68a0b3 }
+ .terminal-1773328529-r1 { fill: #ff8700 }
+.terminal-1773328529-r2 { fill: #c5c8c6 }
+.terminal-1773328529-r3 { fill: #808080 }
+.terminal-1773328529-r4 { fill: #68a0b3 }
</style>
<defs>
- <clipPath id="terminal-4122115999-clip-terminal">
- <rect x="0" y="0" width="914.0" height="877.4" />
+ <clipPath id="terminal-1773328529-clip-terminal">
+ <rect x="0" y="0" width="914.0" height="731.0" />
</clipPath>
- <clipPath id="terminal-4122115999-line-0">
+ <clipPath id="terminal-1773328529-line-0">
<rect x="0" y="1.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-1">
+<clipPath id="terminal-1773328529-line-1">
<rect x="0" y="25.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-2">
+<clipPath id="terminal-1773328529-line-2">
<rect x="0" y="50.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-3">
+<clipPath id="terminal-1773328529-line-3">
<rect x="0" y="74.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-4">
+<clipPath id="terminal-1773328529-line-4">
<rect x="0" y="99.1" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-5">
+<clipPath id="terminal-1773328529-line-5">
<rect x="0" y="123.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-6">
+<clipPath id="terminal-1773328529-line-6">
<rect x="0" y="147.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-7">
+<clipPath id="terminal-1773328529-line-7">
<rect x="0" y="172.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-8">
+<clipPath id="terminal-1773328529-line-8">
<rect x="0" y="196.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-9">
+<clipPath id="terminal-1773328529-line-9">
<rect x="0" y="221.1" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-10">
+<clipPath id="terminal-1773328529-line-10">
<rect x="0" y="245.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-11">
+<clipPath id="terminal-1773328529-line-11">
<rect x="0" y="269.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-12">
+<clipPath id="terminal-1773328529-line-12">
<rect x="0" y="294.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-13">
+<clipPath id="terminal-1773328529-line-13">
<rect x="0" y="318.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-14">
+<clipPath id="terminal-1773328529-line-14">
<rect x="0" y="343.1" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-15">
+<clipPath id="terminal-1773328529-line-15">
<rect x="0" y="367.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-16">
+<clipPath id="terminal-1773328529-line-16">
<rect x="0" y="391.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-17">
+<clipPath id="terminal-1773328529-line-17">
<rect x="0" y="416.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-18">
+<clipPath id="terminal-1773328529-line-18">
<rect x="0" y="440.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-19">
+<clipPath id="terminal-1773328529-line-19">
<rect x="0" y="465.1" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-20">
+<clipPath id="terminal-1773328529-line-20">
<rect x="0" y="489.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-21">
+<clipPath id="terminal-1773328529-line-21">
<rect x="0" y="513.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-22">
+<clipPath id="terminal-1773328529-line-22">
<rect x="0" y="538.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-23">
+<clipPath id="terminal-1773328529-line-23">
<rect x="0" y="562.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-24">
+<clipPath id="terminal-1773328529-line-24">
<rect x="0" y="587.1" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-25">
+<clipPath id="terminal-1773328529-line-25">
<rect x="0" y="611.5" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-26">
+<clipPath id="terminal-1773328529-line-26">
<rect x="0" y="635.9" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-27">
+<clipPath id="terminal-1773328529-line-27">
<rect x="0" y="660.3" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-28">
+<clipPath id="terminal-1773328529-line-28">
<rect x="0" y="684.7" width="915" height="24.65"/>
</clipPath>
-<clipPath id="terminal-4122115999-line-29">
- <rect x="0" y="709.1" width="915" height="24.65"/>
- </clipPath>
-<clipPath id="terminal-4122115999-line-30">
- <rect x="0" y="733.5" width="915" height="24.65"/>
- </clipPath>
-<clipPath id="terminal-4122115999-line-31">
- <rect x="0" y="757.9" width="915" height="24.65"/>
- </clipPath>
-<clipPath id="terminal-4122115999-line-32">
- <rect x="0" y="782.3" width="915" height="24.65"/>
- </clipPath>
-<clipPath id="terminal-4122115999-line-33">
- <rect x="0" y="806.7" width="915" height="24.65"/>
- </clipPath>
-<clipPath id="terminal-4122115999-line-34">
- <rect x="0" y="831.1" width="915" height="24.65"/>
- </clipPath>
</defs>
- <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1"
x="1" y="1" width="931" height="926.4" rx="8"/>
+ <rect fill="#292929" stroke="rgba(255,255,255,0.35)" stroke-width="1"
x="1" y="1" width="931" height="780" rx="8"/>
<g transform="translate(26,22)">
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
<circle cx="44" cy="0" r="7" fill="#28c840"/>
</g>
- <g transform="translate(9, 41)"
clip-path="url(#terminal-4122115999-clip-terminal)">
+ <g transform="translate(9, 41)"
clip-path="url(#terminal-1773328529-clip-terminal)">
- <g class="terminal-4122115999-matrix">
- <text class="terminal-4122115999-r1" x="0" y="20" textLength="73.2"
clip-path="url(#terminal-4122115999-line-0)">Usage:</text><text
class="terminal-4122115999-r3" x="85.4" y="20" textLength="207.4"
clip-path="url(#terminal-4122115999-line-0)">airflowctl assets</text><text
class="terminal-4122115999-r2" x="292.8" y="20" textLength="24.4"
clip-path="url(#terminal-4122115999-line-0)"> [</text><text
class="terminal-4122115999-r4" x="317.2" y="20" textLength="24.4" clip-path="ur
[...]
-</text><text class="terminal-4122115999-r2" x="915" y="44.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-1)">
-</text><text class="terminal-4122115999-r2" x="0" y="68.8" textLength="305"
clip-path="url(#terminal-4122115999-line-2)">Perform Assets operations</text><text
class="terminal-4122115999-r2" x="915" y="68.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-2)">
-</text><text class="terminal-4122115999-r2" x="915" y="93.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-3)">
-</text><text class="terminal-4122115999-r1" x="0" y="117.6" textLength="256.2"
clip-path="url(#terminal-4122115999-line-4)">Positional Arguments:</text><text
class="terminal-4122115999-r2" x="915" y="117.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-4)">
-</text><text class="terminal-4122115999-r4" x="24.4" y="142" textLength="85.4"
clip-path="url(#terminal-4122115999-line-5)">COMMAND</text><text
class="terminal-4122115999-r2" x="915" y="142" textLength="12.2"
clip-path="url(#terminal-4122115999-line-5)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="166.4"
textLength="207.4"
clip-path="url(#terminal-4122115999-line-6)">clear-state-store</text><text
class="terminal-4122115999-r2" x="292.8" y="166.4" textLength="610"
clip-path="url(#terminal-4122115999-line-6)">Delete all state store keys for an asset by its ID</text><text
class="terminal-4122115999-r2" x="915" y="166.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-6)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="190.8"
textLength="146.4"
clip-path="url(#terminal-4122115999-line-7)">create-event</text><text
class="terminal-4122115999-r2" x="292.8" y="190.8" textLength="402.6"
clip-path="url(#terminal-4122115999-line-7)">Create an event for a given asset</text><text
class="terminal-4122115999-r2" x="915" y="190.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-7)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="215.2"
textLength="292.8"
clip-path="url(#terminal-4122115999-line-8)">delete-dag-queued-events</text><text
class="terminal-4122115999-r2" x="915" y="215.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-8)">
-</text><text class="terminal-4122115999-r2" x="292.8" y="239.6"
textLength="561.2"
clip-path="url(#terminal-4122115999-line-9)">Delete all queued asset events for a given Dag</text><text
class="terminal-4122115999-r2" x="915" y="239.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-9)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="264"
textLength="231.8"
clip-path="url(#terminal-4122115999-line-10)">delete-queued-event</text><text
class="terminal-4122115999-r2" x="915" y="264" textLength="12.2"
clip-path="url(#terminal-4122115999-line-10)">
-</text><text class="terminal-4122115999-r2" x="292.8" y="288.4"
textLength="597.8"
clip-path="url(#terminal-4122115999-line-11)">Delete a specific queued asset event for a given </text><text
class="terminal-4122115999-r2" x="915" y="288.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-11)">
-</text><text class="terminal-4122115999-r2" x="0" y="312.8" textLength="158.6"
clip-path="url(#terminal-4122115999-line-12)">Dag and asset</text><text
class="terminal-4122115999-r2" x="915" y="312.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-12)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="337.2"
textLength="244"
clip-path="url(#terminal-4122115999-line-13)">delete-queued-events</text><text
class="terminal-4122115999-r2" x="915" y="337.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-13)">
-</text><text class="terminal-4122115999-r2" x="292.8" y="361.6"
textLength="512.4"
clip-path="url(#terminal-4122115999-line-14)">Delete all queued events for a given asset</text><text
class="terminal-4122115999-r2" x="915" y="361.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-14)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="386"
textLength="219.6"
clip-path="url(#terminal-4122115999-line-15)">delete-state-store</text><text
class="terminal-4122115999-r2" x="292.8" y="386" textLength="622.2"
clip-path="url(#terminal-4122115999-line-15)">Delete a single asset state store key by its ID and</text><text
class="terminal-4122115999-r2" x="915" y="386" textLength="12.2"
clip-path="url(#terminal-4122115999-line-15)">
-</text><text class="terminal-4122115999-r2" x="0" y="410.4" textLength="36.6"
clip-path="url(#terminal-4122115999-line-16)">key</text><text
class="terminal-4122115999-r2" x="915" y="410.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-16)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="434.8"
textLength="36.6" clip-path="url(#terminal-4122115999-line-17)">get</text><text
class="terminal-4122115999-r2" x="292.8" y="434.8" textLength="329.4"
clip-path="url(#terminal-4122115999-line-17)">Retrieve an asset by its ID</text><text
class="terminal-4122115999-r2" x="915" y="434.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-17)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="459.2"
textLength="109.8"
clip-path="url(#terminal-4122115999-line-18)">get-alias</text><text
class="terminal-4122115999-r2" x="292.8" y="459.2" textLength="402.6"
clip-path="url(#terminal-4122115999-line-18)">Retrieve an asset alias by its ID</text><text
class="terminal-4122115999-r2" x="915" y="459.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-18)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="483.6"
textLength="244"
clip-path="url(#terminal-4122115999-line-19)">get-dag-queued-event</text><text
class="terminal-4122115999-r2" x="915" y="483.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-19)">
-</text><text class="terminal-4122115999-r2" x="292.8" y="508"
textLength="622.2"
clip-path="url(#terminal-4122115999-line-20)">Retrieve a specific queued asset event for a given </text><text
class="terminal-4122115999-r2" x="915" y="508" textLength="12.2"
clip-path="url(#terminal-4122115999-line-20)">
-</text><text class="terminal-4122115999-r2" x="0" y="532.4" textLength="158.6"
clip-path="url(#terminal-4122115999-line-21)">Dag and asset</text><text
class="terminal-4122115999-r2" x="915" y="532.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-21)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="556.8"
textLength="256.2"
clip-path="url(#terminal-4122115999-line-22)">get-dag-queued-events</text><text
class="terminal-4122115999-r2" x="915" y="556.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-22)">
-</text><text class="terminal-4122115999-r2" x="292.8" y="581.2"
textLength="488"
clip-path="url(#terminal-4122115999-line-23)">List queued asset events for a given Dag</text><text
class="terminal-4122115999-r2" x="915" y="581.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-23)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="605.6"
textLength="207.4"
clip-path="url(#terminal-4122115999-line-24)">get-queued-events</text><text
class="terminal-4122115999-r2" x="292.8" y="605.6" textLength="439.2"
clip-path="url(#terminal-4122115999-line-24)">List queued events for a given asset</text><text
class="terminal-4122115999-r2" x="915" y="605.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-24)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="630" textLength="183"
clip-path="url(#terminal-4122115999-line-25)">get-state-store</text><text
class="terminal-4122115999-r2" x="292.8" y="630" textLength="622.2"
clip-path="url(#terminal-4122115999-line-25)">Retrieve a single asset state store entry by its ID</text><text
class="terminal-4122115999-r2" x="915" y="630" textLength="12.2"
clip-path="url(#terminal-4122115999-line-25)">
-</text><text class="terminal-4122115999-r2" x="0" y="654.4" textLength="85.4"
clip-path="url(#terminal-4122115999-line-26)">and key</text><text
class="terminal-4122115999-r2" x="915" y="654.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-26)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="678.8"
textLength="48.8"
clip-path="url(#terminal-4122115999-line-27)">list</text><text
class="terminal-4122115999-r2" x="292.8" y="678.8" textLength="183"
clip-path="url(#terminal-4122115999-line-27)">List all assets</text><text
class="terminal-4122115999-r2" x="915" y="678.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-27)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="703.2"
textLength="146.4"
clip-path="url(#terminal-4122115999-line-28)">list-aliases</text><text
class="terminal-4122115999-r2" x="292.8" y="703.2" textLength="268.4"
clip-path="url(#terminal-4122115999-line-28)">List all asset aliases</text><text
class="terminal-4122115999-r2" x="915" y="703.2" textLength="12.2"
clip-path="url(#terminal-4122115999-line-28)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="727.6"
textLength="195.2"
clip-path="url(#terminal-4122115999-line-29)">list-state-store</text><text
class="terminal-4122115999-r2" x="292.8" y="727.6" textLength="500.2"
clip-path="url(#terminal-4122115999-line-29)">List all state store entries for an asset</text><text
class="terminal-4122115999-r2" x="915" y="727.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-29)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="752"
textLength="134.2"
clip-path="url(#terminal-4122115999-line-30)">materialize</text><text
class="terminal-4122115999-r2" x="292.8" y="752" textLength="549"
clip-path="url(#terminal-4122115999-line-30)">Trigger materialization of an asset by its ID</text><text
class="terminal-4122115999-r2" x="915" y="752" textLength="12.2"
clip-path="url(#terminal-4122115999-line-30)">
-</text><text class="terminal-4122115999-r4" x="48.8" y="776.4"
textLength="183"
clip-path="url(#terminal-4122115999-line-31)">set-state-store</text><text
class="terminal-4122115999-r2" x="292.8" y="776.4" textLength="610"
clip-path="url(#terminal-4122115999-line-31)">Set an asset state store value. Parsed as JSON if </text><text
class="terminal-4122115999-r2" x="915" y="776.4" textLength="12.2"
clip-path="url(#terminal-4122115999-line-31)">
-</text><text class="terminal-4122115999-r2" x="0" y="800.8" textLength="427"
clip-path="url(#terminal-4122115999-line-32)">valid, otherwise stored as a string</text><text
class="terminal-4122115999-r2" x="915" y="800.8" textLength="12.2"
clip-path="url(#terminal-4122115999-line-32)">
-</text><text class="terminal-4122115999-r2" x="915" y="825.2"
textLength="12.2" clip-path="url(#terminal-4122115999-line-33)">
-</text><text class="terminal-4122115999-r1" x="0" y="849.6" textLength="97.6"
clip-path="url(#terminal-4122115999-line-34)">Options:</text><text
class="terminal-4122115999-r2" x="915" y="849.6" textLength="12.2"
clip-path="url(#terminal-4122115999-line-34)">
-</text><text class="terminal-4122115999-r4" x="24.4" y="874" textLength="24.4"
clip-path="url(#terminal-4122115999-line-35)">-h</text><text
class="terminal-4122115999-r2" x="48.8" y="874" textLength="24.4"
clip-path="url(#terminal-4122115999-line-35)">, </text><text
class="terminal-4122115999-r4" x="73.2" y="874" textLength="73.2"
clip-path="url(#terminal-4122115999-line-35)">--help</text><text
class="terminal-4122115999-r2" x="292.8" y="874" textLength="378.2"
clip-path="url(#termi [...]
+ <g class="terminal-1773328529-matrix">
+ <text class="terminal-1773328529-r1" x="0" y="20" textLength="73.2"
clip-path="url(#terminal-1773328529-line-0)">Usage:</text><text
class="terminal-1773328529-r3" x="85.4" y="20" textLength="207.4"
clip-path="url(#terminal-1773328529-line-0)">airflowctl assets</text><text
class="terminal-1773328529-r2" x="292.8" y="20" textLength="24.4"
clip-path="url(#terminal-1773328529-line-0)"> [</text><text
class="terminal-1773328529-r4" x="317.2" y="20" textLength="24.4" clip-path="ur
[...]
+</text><text class="terminal-1773328529-r2" x="915" y="44.4" textLength="12.2"
clip-path="url(#terminal-1773328529-line-1)">
+</text><text class="terminal-1773328529-r2" x="0" y="68.8" textLength="305"
clip-path="url(#terminal-1773328529-line-2)">Perform Assets operations</text><text
class="terminal-1773328529-r2" x="915" y="68.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-2)">
+</text><text class="terminal-1773328529-r2" x="915" y="93.2" textLength="12.2"
clip-path="url(#terminal-1773328529-line-3)">
+</text><text class="terminal-1773328529-r1" x="0" y="117.6" textLength="256.2"
clip-path="url(#terminal-1773328529-line-4)">Positional Arguments:</text><text
class="terminal-1773328529-r2" x="915" y="117.6" textLength="12.2"
clip-path="url(#terminal-1773328529-line-4)">
+</text><text class="terminal-1773328529-r4" x="24.4" y="142" textLength="85.4"
clip-path="url(#terminal-1773328529-line-5)">COMMAND</text><text
class="terminal-1773328529-r2" x="915" y="142" textLength="12.2"
clip-path="url(#terminal-1773328529-line-5)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="166.4"
textLength="146.4"
clip-path="url(#terminal-1773328529-line-6)">create-event</text><text
class="terminal-1773328529-r2" x="292.8" y="166.4" textLength="402.6"
clip-path="url(#terminal-1773328529-line-6)">Create an event for a given asset</text><text
class="terminal-1773328529-r2" x="915" y="166.4" textLength="12.2"
clip-path="url(#terminal-1773328529-line-6)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="190.8"
textLength="292.8"
clip-path="url(#terminal-1773328529-line-7)">delete-dag-queued-events</text><text
class="terminal-1773328529-r2" x="915" y="190.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-7)">
+</text><text class="terminal-1773328529-r2" x="292.8" y="215.2"
textLength="561.2"
clip-path="url(#terminal-1773328529-line-8)">Delete all queued asset events for a given Dag</text><text
class="terminal-1773328529-r2" x="915" y="215.2" textLength="12.2"
clip-path="url(#terminal-1773328529-line-8)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="239.6"
textLength="231.8"
clip-path="url(#terminal-1773328529-line-9)">delete-queued-event</text><text
class="terminal-1773328529-r2" x="915" y="239.6" textLength="12.2"
clip-path="url(#terminal-1773328529-line-9)">
+</text><text class="terminal-1773328529-r2" x="292.8" y="264"
textLength="597.8"
clip-path="url(#terminal-1773328529-line-10)">Delete a specific queued asset event for a given </text><text
class="terminal-1773328529-r2" x="915" y="264" textLength="12.2"
clip-path="url(#terminal-1773328529-line-10)">
+</text><text class="terminal-1773328529-r2" x="0" y="288.4" textLength="158.6"
clip-path="url(#terminal-1773328529-line-11)">Dag and asset</text><text
class="terminal-1773328529-r2" x="915" y="288.4" textLength="12.2"
clip-path="url(#terminal-1773328529-line-11)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="312.8"
textLength="244"
clip-path="url(#terminal-1773328529-line-12)">delete-queued-events</text><text
class="terminal-1773328529-r2" x="915" y="312.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-12)">
+</text><text class="terminal-1773328529-r2" x="292.8" y="337.2"
textLength="512.4"
clip-path="url(#terminal-1773328529-line-13)">Delete all queued events for a given asset</text><text
class="terminal-1773328529-r2" x="915" y="337.2" textLength="12.2"
clip-path="url(#terminal-1773328529-line-13)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="361.6"
textLength="36.6" clip-path="url(#terminal-1773328529-line-14)">get</text><text
class="terminal-1773328529-r2" x="292.8" y="361.6" textLength="329.4"
clip-path="url(#terminal-1773328529-line-14)">Retrieve an asset by its ID</text><text
class="terminal-1773328529-r2" x="915" y="361.6" textLength="12.2"
clip-path="url(#terminal-1773328529-line-14)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="386"
textLength="109.8"
clip-path="url(#terminal-1773328529-line-15)">get-alias</text><text
class="terminal-1773328529-r2" x="292.8" y="386" textLength="402.6"
clip-path="url(#terminal-1773328529-line-15)">Retrieve an asset alias by its ID</text><text
class="terminal-1773328529-r2" x="915" y="386" textLength="12.2"
clip-path="url(#terminal-1773328529-line-15)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="410.4"
textLength="244"
clip-path="url(#terminal-1773328529-line-16)">get-dag-queued-event</text><text
class="terminal-1773328529-r2" x="915" y="410.4" textLength="12.2"
clip-path="url(#terminal-1773328529-line-16)">
+</text><text class="terminal-1773328529-r2" x="292.8" y="434.8"
textLength="622.2"
clip-path="url(#terminal-1773328529-line-17)">Retrieve a specific queued asset event for a given </text><text
class="terminal-1773328529-r2" x="915" y="434.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-17)">
+</text><text class="terminal-1773328529-r2" x="0" y="459.2" textLength="158.6"
clip-path="url(#terminal-1773328529-line-18)">Dag and asset</text><text
class="terminal-1773328529-r2" x="915" y="459.2" textLength="12.2"
clip-path="url(#terminal-1773328529-line-18)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="483.6"
textLength="256.2"
clip-path="url(#terminal-1773328529-line-19)">get-dag-queued-events</text><text
class="terminal-1773328529-r2" x="915" y="483.6" textLength="12.2"
clip-path="url(#terminal-1773328529-line-19)">
+</text><text class="terminal-1773328529-r2" x="292.8" y="508" textLength="488"
clip-path="url(#terminal-1773328529-line-20)">List queued asset events for a given Dag</text><text
class="terminal-1773328529-r2" x="915" y="508" textLength="12.2"
clip-path="url(#terminal-1773328529-line-20)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="532.4"
textLength="207.4"
clip-path="url(#terminal-1773328529-line-21)">get-queued-events</text><text
class="terminal-1773328529-r2" x="292.8" y="532.4" textLength="439.2"
clip-path="url(#terminal-1773328529-line-21)">List queued events for a given asset</text><text
class="terminal-1773328529-r2" x="915" y="532.4" textLength="12.2"
clip-path="url(#terminal-1773328529-line-21)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="556.8"
textLength="48.8"
clip-path="url(#terminal-1773328529-line-22)">list</text><text
class="terminal-1773328529-r2" x="292.8" y="556.8" textLength="183"
clip-path="url(#terminal-1773328529-line-22)">List all assets</text><text
class="terminal-1773328529-r2" x="915" y="556.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-22)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="581.2"
textLength="146.4"
clip-path="url(#terminal-1773328529-line-23)">list-aliases</text><text
class="terminal-1773328529-r2" x="292.8" y="581.2" textLength="268.4"
clip-path="url(#terminal-1773328529-line-23)">List all asset aliases</text><text
class="terminal-1773328529-r2" x="915" y="581.2" textLength="12.2"
clip-path="url(#terminal-1773328529-line-23)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="605.6"
textLength="134.2"
clip-path="url(#terminal-1773328529-line-24)">materialize</text><text
class="terminal-1773328529-r2" x="292.8" y="605.6" textLength="549"
clip-path="url(#terminal-1773328529-line-24)">Trigger materialization of an asset by its ID</text><text
class="terminal-1773328529-r2" x="915" y="605.6" textLength="12.2"
clip-path="url(#terminal-1773328529-line-24)">
+</text><text class="terminal-1773328529-r4" x="48.8" y="630"
textLength="134.2"
clip-path="url(#terminal-1773328529-line-25)">state-store</text><text
class="terminal-1773328529-r2" x="292.8" y="630" textLength="414.8"
clip-path="url(#terminal-1773328529-line-25)">Manage the state store of an asset</text><text
class="terminal-1773328529-r2" x="915" y="630" textLength="12.2"
clip-path="url(#terminal-1773328529-line-25)">
+</text><text class="terminal-1773328529-r2" x="915" y="654.4"
textLength="12.2" clip-path="url(#terminal-1773328529-line-26)">
+</text><text class="terminal-1773328529-r1" x="0" y="678.8" textLength="97.6"
clip-path="url(#terminal-1773328529-line-27)">Options:</text><text
class="terminal-1773328529-r2" x="915" y="678.8" textLength="12.2"
clip-path="url(#terminal-1773328529-line-27)">
+</text><text class="terminal-1773328529-r4" x="24.4" y="703.2"
textLength="24.4" clip-path="url(#terminal-1773328529-line-28)">-h</text><text
class="terminal-1773328529-r2" x="48.8" y="703.2" textLength="24.4"
clip-path="url(#terminal-1773328529-line-28)">, </text><text
class="terminal-1773328529-r4" x="73.2" y="703.2" textLength="73.2"
clip-path="url(#terminal-1773328529-line-28)">--help</text><text
class="terminal-1773328529-r2" x="292.8" y="703.2" textLength="378.2"
clip-path="ur [...]
+</text><text class="terminal-1773328529-r2" x="915" y="727.6"
textLength="12.2" clip-path="url(#terminal-1773328529-line-29)">
</text>
</g>
</g>
diff --git a/airflow-ctl/src/airflowctl/ctl/cli_config.py
b/airflow-ctl/src/airflowctl/ctl/cli_config.py
index 7b0e84f7efa..a02fac45be3 100755
--- a/airflow-ctl/src/airflowctl/ctl/cli_config.py
+++ b/airflow-ctl/src/airflowctl/ctl/cli_config.py
@@ -608,6 +608,7 @@ class CommandFactory:
# (hyphenated into the subcommand name).
# e.g. list_state_store -> "taskinstances state-store list".
self.subgroups: dict[str, set[str]] = {
+ "AssetsOperations": {"state_store"},
"TaskInstancesOperations": {"state_store"},
}
diff --git a/airflow-ctl/src/airflowctl/ctl/help_texts.yaml
b/airflow-ctl/src/airflowctl/ctl/help_texts.yaml
index ef0e0ddc7bb..fbb9913c784 100644
--- a/airflow-ctl/src/airflowctl/ctl/help_texts.yaml
+++ b/airflow-ctl/src/airflowctl/ctl/help_texts.yaml
@@ -28,6 +28,7 @@ assets:
delete-queued-events: "Delete all queued events for a given asset"
delete-dag-queued-events: "Delete all queued asset events for a given Dag"
delete-queued-event: "Delete a specific queued asset event for a given Dag
and asset"
+ state-store: "Manage the state store of an asset"
list-state-store: "List all state store entries for an asset"
get-state-store: "Retrieve a single asset state store entry by its ID and
key"
set-state-store: "Set an asset state store value. Parsed as JSON if valid,
otherwise stored as a string"
diff --git a/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
b/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
index 47f979543ef..a88d03c6a93 100644
--- a/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
+++ b/airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py
@@ -1416,6 +1416,7 @@ class TestCliConfigMethods:
("group_name", "subcommand_name", "expected_help"),
[
("assets", "get", "Retrieve an asset by its ID"),
+ ("assets", "state-store", "Manage the state store of an asset"),
("connections", "get", "Retrieve a connection by its ID"),
("taskinstances", "list", "List all task instances for a given Dag
run"),
("taskinstances", "get", "Get a task instance for a given Dag
run"),
diff --git a/scripts/ci/prek/check_airflowctl_command_coverage.py
b/scripts/ci/prek/check_airflowctl_command_coverage.py
index a0473158282..647ba0650d8 100755
--- a/scripts/ci/prek/check_airflowctl_command_coverage.py
+++ b/scripts/ci/prek/check_airflowctl_command_coverage.py
@@ -72,6 +72,7 @@ EXCLUDED_COMMANDS = {
}
SUBGROUPS = {
+ "assets": {"state-store"},
"taskinstances": {"state-store"},
}
NESTED_PREFIXES = {f"{group} {subgroup}" for group, subgroups in
SUBGROUPS.items() for subgroup in subgroups}