You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airflow-core/src/airflow/api_fastapi/execution_api/routes/asset_state.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ def get_asset_state_by_name(
87
87
) ->AssetStateResponse:
88
88
"""Get an asset state value by asset name."""
89
89
asset_id=_resolve_asset_id_by_name(name, session)
90
-
value=get_state_backend().get(AssetScope(asset_id=asset_id), key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
get_state_backend().set(AssetScope(asset_id=asset_id), key, body.value, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
"""Delete a single asset state key by asset name."""
118
118
asset_id=_resolve_asset_id_by_name(name, session)
119
-
get_state_backend().delete(AssetScope(asset_id=asset_id), key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
"""Delete all state keys for an asset by asset name."""
128
128
asset_id=_resolve_asset_id_by_name(name, session)
129
-
get_state_backend().clear(AssetScope(asset_id=asset_id), session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
value=get_state_backend().get(AssetScope(asset_id=asset_id), key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
get_state_backend().set(AssetScope(asset_id=asset_id), key, body.value, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
"""Delete a single asset state key by asset URI."""
168
168
asset_id=_resolve_asset_id_by_uri(uri, session)
169
-
get_state_backend().delete(AssetScope(asset_id=asset_id), key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
"""Delete all state keys for an asset by asset URI."""
178
178
asset_id=_resolve_asset_id_by_uri(uri, session)
179
-
get_state_backend().clear(AssetScope(asset_id=asset_id), session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
value=get_state_backend().get(scope, key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
get_state_backend().set(scope, key, body.value, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
get_state_backend().delete(scope, key, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
get_state_backend().clear(scope, all_map_indices=all_map_indices, session=session)# type: ignore[call-arg] # @provide_session adds session kwarg at runtime; BaseStateBackend signature omits it so mypy can't see it
0 commit comments