Repository navigation
Add asset state store commands to airflowctl - #70771
Conversation
0e7e677 to
cdb8705
Compare
cdb8705 to
c290886
Compare
|
Would appreciate a review on this. Thanks. |
c290886 to
3ca61b6
Compare
|
Requesting review on this. Thanks. |
SameerMesiah97
left a comment
There was a problem hiding this comment.
Just 2 minor issues. Looks good otherwise.
3ca61b6 to
a5bfe53
Compare
Appreciate the review as always. Addressed both comments. |
henry3260
left a comment
There was a problem hiding this comment.
Sorry for the late review
PR description lists "list, delete, clear, and set", but the diff also adds get-state-store. Might be worth mentioning it so the description matches the commands.
a5bfe53 to
ce92006
Compare
Thanks for the review! I've addressed the comments and added "get" to the list of commands specified in the description. |
|
Seems the test failure was a transient error. Would appreciate if someone can give it a rerun. |
Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker fb512ef airflow-ctl/v0-1-testThis should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
…70771) (#72742) Manual backport. This branch's core API spec (3.2.1) does not include the asset state-store endpoints, so the AssetStateStore* datamodels were added to generated.py by hand instead of via datamodel-codegen, and the assets help SVG was regenerated from this branch. The field_bool_default_datamodels context from main and the unrelated queued-event delete tests were left out because the tasks clear backport is not on this branch. (cherry picked from commit fb512ef) Co-authored-by: Justin Pakzad <[email protected]>
…70771) (#72742) Manual backport. This branch's core API spec (3.2.1) does not include the asset state-store endpoints, so the AssetStateStore* datamodels were added to generated.py by hand instead of via datamodel-codegen, and the assets help SVG was regenerated from this branch. The field_bool_default_datamodels context from main and the unrelated queued-event delete tests were left out because the tasks clear backport is not on this branch. (cherry picked from commit fb512ef) Co-authored-by: Justin Pakzad <[email protected]>
This PR adds asset state store commands to airflowctl. This would allow users to get, list, delete, clear, and set key/values in an asset state store. All of the new commands correspond to existing endpoints that are available via the REST API. Unit and integration tests were added for each command and they were also tested against an actual state store via breeze.
Note - another way to structure this would be by introducing new operations/command groups (e.g., StateStoreOperations or AssetsStateStoreOperations), I felt grouping them under
assetsmade the most sense. Open to suggestions though.Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.